29 Commits

Author SHA1 Message Date
Andrew Ruthven
7f2cccb94a Use isset when checking that the key exists
To resolve errors like this:

Warning:  Undefined array key "example.net" in /usr/share/davical/inc/iSchedule.php on line 207
2024-04-01 20:46:15 +13:00
Andrew Ruthven
901d82a293 Fix creation of dynamic properties
Add some properties to classes to fix errors like:

Creation of dynamic property iSchedule::$body_cannon is deprecated in /usr/share/davical/inc/iSchedule.php on line 533
Creation of dynamic property FakeSession::$user_active is deprecated in /usr/share/davical/inc/iSchedule-POST.php on line 23
2024-04-01 20:43:45 +13:00
Andrew Ruthven
ec9159fd69 Fix some warnings about using undefined keys, simplify dns strings
Fixes:
- PHP Warning:  Trying to access array offset on value of type null in inc/iSchedule.php on line 83
- PHP Warning:  Undefined array key "t" in inc/iSchedule.php on line 165
- PHP Warning:  Undefined array key "t" in inc/iSchedule.php on line 167
- PHP Warning:  Undefined array key "p" in inc/iSchedule.php on line 184

Concatenate the DNS entry we're going to look up once rather than everytime
we need it.
2024-04-01 18:34:33 +13:00
Andrew Ruthven
62441f7705 Ensure we have an array, and there is a value.
Resolves this warning in PHP 8.2:

Warning:  Undefined array key 0 in /usr/share/davical/inc/iSchedule.php on
  line 218
Warning:  Trying to access array offset on null in
  /usr/share/davical/inc/iSchedule.php on line 218
2024-02-29 00:43:50 +13:00
Andrew Ruthven
0a0c0a77cc Explicitly declare all class properties
PHP 8.2.0 has deprecated dynamic creation of properties.

This kind of warning message is displayed:

Deprecated:  Creation of dynamic property DAViCalSession::$login_failed is
  deprecated in /usr/share/awl/inc/Session.php on line 153
2024-02-29 00:43:50 +13:00
ruliane
43bda7a5ba Fix error when $icfg is not set. 2022-12-12 21:13:49 +00:00
ruliane
19ec6fd2fb Fix PHP Notice: Undefined variable: body in /usr/share/davical/inc/iSchedule.php on line 435 2022-12-12 20:57:34 +00:00
Andrew Ruthven
cf0e2774f6 Fix a second time where the array might be false. 2022-02-13 01:46:44 +13:00
Raivo Hool
f42627c89f Fix iSchedule configuration with PHP 8
Closes #252.
2022-02-13 01:45:25 +13:00
Florian Schlichting
eb7f2edc0c eliminate trailing whitespace, expand tabs 2016-12-30 08:52:44 +01:00
Rob Ostensen
574aaf4465 Add the ability to override dns for iSchedule using a global variable $icfg 2012-03-12 16:35:53 +13:00
Andrew McMillan
af6cbc335a Fix reference to $domain should be $this->domain. 2012-03-12 13:18:28 +13:00
Rob Ostensen
ff006ce319 verify required headers are signed 2012-03-12 12:38:49 +13:00
Rob Ostensen
db57e81b8d add disallowed header check and some comments 2012-03-12 12:38:42 +13:00
Andrew McMillan
df9a8a8911 Avoid variable not assigned warning. 2012-03-02 08:55:09 +13:00
Rob Ostensen
b11ff47ef6 ischedule: more correct error codes 2012-02-01 12:46:05 -08:00
Rob Ostensen
f0e912da7e iSchedule changes: fix signed domain, better error handling, cleanups 2012-01-30 21:18:10 -06:00
Rob Ostensen
70fb506ed1 ischedule freebusy should work now 2012-01-30 20:29:48 -06:00
Rob Ostensen
86990f4538 closer to a working version 2012-01-30 19:46:36 -06:00
Rob Ostensen
31f9fdd505 fix xml queries 2012-01-29 12:14:20 -06:00
Rob Ostensen
c46a8aa74d debug logging and some typo fixes 2012-01-26 19:42:59 -06:00
Rob Ostensen
b8ce63a204 return calendar contents if present otherwise return status 2012-01-26 16:17:30 -06:00
Rob Ostensen
c3ec1016a1 remote scheduling requests should work now, still need to handle ADD/CANCEL requests 2012-01-26 16:02:02 -06:00
Rob Ostensen
73718a9ded iSchedule internal round trip with headers and body signing then verification working 2012-01-16 19:08:06 -06:00
Rob Ostensen
f55fd015a9 reformatting to match the rest of DAViCal and a few code changes 2012-01-15 22:19:38 -06:00
Andrew McMillan
b4dfa9c1bf Rewriting some TODO comments as @todo 2011-08-26 01:03:13 +12:00
Felix Möller
9bfb7116eb Correct a small typo.
Correcting the typo in the source not in the docs as they are auto generated.
2011-02-21 22:31:03 +13:00
Rob Ostensen
f8027e88e7 fixed bad if statement, actually works for returning freebusy 2010-04-19 14:18:05 +12:00
Rob Ostensen
528211bc65 First phase of iSchedule support. Capabilities supported as well as validating remote requests. Still need to handle remote requests. 2010-04-19 14:17:19 +12:00