diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-03 22:01:14 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-03 22:01:14 -0700 |
commit | 4e07b4c0e8d5eefd934f559b33e10526519ec6e9 (patch) | |
tree | 89f0897b256853bc0082353019ae03a75802f72a /Zotlabs/Module/Events.php | |
parent | ce6e81c68221a9f462af886626dc02fdfc26f8aa (diff) | |
download | volse-hubzilla-4e07b4c0e8d5eefd934f559b33e10526519ec6e9.tar.gz volse-hubzilla-4e07b4c0e8d5eefd934f559b33e10526519ec6e9.tar.bz2 volse-hubzilla-4e07b4c0e8d5eefd934f559b33e10526519ec6e9.zip |
even more backslashes
Diffstat (limited to 'Zotlabs/Module/Events.php')
-rw-r--r-- | Zotlabs/Module/Events.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Events.php b/Zotlabs/Module/Events.php index 2bff4676e..b709cd1f4 100644 --- a/Zotlabs/Module/Events.php +++ b/Zotlabs/Module/Events.php @@ -336,7 +336,7 @@ class Events extends \Zotlabs\Web\Controller { /* edit/create form */ if($event_id) { - $r = q("SELECT * FROM `event` WHERE event_hash = '%s' AND `uid` = %d LIMIT 1", + $r = q("SELECT * FROM event WHERE event_hash = '%s' AND uid = %d LIMIT 1", dbesc($event_id), intval(local_channel()) ); @@ -545,8 +545,8 @@ class Events extends \Zotlabs\Web\Controller { ); } elseif($export) { $r = q("SELECT * from event where uid = %d - AND (( `adjust` = 0 AND ( `dtend` >= '%s' or nofinish = 1 ) AND `dtstart` <= '%s' ) - OR ( `adjust` = 1 AND ( `dtend` >= '%s' or nofinish = 1 ) AND `dtstart` <= '%s' )) ", + AND (( adjust = 0 AND ( dtend >= '%s' or nofinish = 1 ) AND dtstart <= '%s' ) + OR ( adjust = 1 AND ( dtend >= '%s' or nofinish = 1 ) AND dtstart <= '%s' )) ", intval(local_channel()), dbesc($start), dbesc($finish), @@ -694,7 +694,7 @@ class Events extends \Zotlabs\Web\Controller { } if($mode === 'drop' && $event_id) { - $r = q("SELECT * FROM `event` WHERE event_hash = '%s' AND `uid` = %d LIMIT 1", + $r = q("SELECT * FROM event WHERE event_hash = '%s' AND uid = %d LIMIT 1", dbesc($event_id), intval(local_channel()) ); |