summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/calendar/lib/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/lib/share.php b/apps/calendar/lib/share.php
index 33bf50f68ad..d66095b9771 100644
--- a/apps/calendar/lib/share.php
+++ b/apps/calendar/lib/share.php
@@ -27,10 +27,10 @@ class OC_Calendar_Share{
}else{
$group_where .= ' OR ';
}
- $group_where .= ' (share = "' . $group . '" and sharetype = "group") ';
+ $group_where .= ' (share = \'' . $group . '\' AND sharetype = \'group\') ';
$i++;
}
- $stmt = OC_DB::prepare('SELECT * FROM *PREFIX*calendar_share_' . $type . ' WHERE ((share = ? AND sharetype = "user") ' . $group_where . ') AND owner <> ?' . ((!is_null($active) && $active)?' AND active = 1':''));
+ $stmt = OC_DB::prepare('SELECT * FROM *PREFIX*calendar_share_' . $type . ' WHERE ((share = ? AND sharetype = \'user\') ' . $group_where . ') AND owner <> ?' . ((!is_null($active) && $active)?' AND active = 1)':')'));
$result = $stmt->execute(array($userid, $userid));
$return = array();
while( $row = $result->fetchRow()){