summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-02-18 11:21:07 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-02-18 11:21:07 +0100
commitd8734cee02233241120a1ad027a495bff8d045cd (patch)
tree1235c3a5a34471e69bc989cd1630841f10818262 /apps/calendar/lib
parent011bc1e764df276343fd91f9b7d6ab26c498858a (diff)
downloadnextcloud-server-d8734cee02233241120a1ad027a495bff8d045cd.tar.gz
nextcloud-server-d8734cee02233241120a1ad027a495bff8d045cd.zip
fix sql command
Diffstat (limited to 'apps/calendar/lib')
-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()){