WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
Adding a category (as an admin user) triggers this error:
PHP Parse error: syntax error, unexpected single-quoted string " )" in /opt/webcalendar/category_handler.php on line 74.
Seems to be too many single quotes in that string?
Code:
if (!dbi_execute(
'DELETE FROM webcal_entry_categories
WHERE cat_id = ? AND ( cat_owner = ?'
. ($is_admin ? ' OR cat_owner = '' )' : ' )'),
[$id, $login]
))
Adding a category (as an admin user) triggers this error: PHP Parse error: syntax error, unexpected single-quoted string " )" in /opt/webcalendar/category_handler.php on line 74. Seems to be too many single quotes in that string?
Code: if (!dbi_execute( 'DELETE FROM webcal_entry_categories WHERE cat_id = ? AND ( cat_owner = ?' . ($is_admin ? ' OR cat_owner = '' )' : ' )'), [$id, $login] ))