summaryrefslogtreecommitdiffstats
path: root/lib/log.php
diff options
context:
space:
mode:
authorSerge Martin <edb@sigluy.net>2011-08-07 19:02:41 +0200
committerSerge Martin <edb@sigluy.net>2011-08-07 19:02:41 +0200
commitacf7916e71f1e290aa12eb259d92aa8ab2ffcf23 (patch)
tree9ab94628669f789c8214c8da197cd2d6d030291b /lib/log.php
parenta0b7b85c5678d09504fa2d39e64a86b26ee25410 (diff)
downloadnextcloud-server-acf7916e71f1e290aa12eb259d92aa8ab2ffcf23.tar.gz
nextcloud-server-acf7916e71f1e290aa12eb259d92aa8ab2ffcf23.zip
user is a reserved word in postgresql
Diffstat (limited to 'lib/log.php')
-rw-r--r--lib/log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/log.php b/lib/log.php
index d51b2ef0785..1ed8e0e33c2 100644
--- a/lib/log.php
+++ b/lib/log.php
@@ -51,7 +51,7 @@ class OC_Log {
* This function adds another entry to the log database
*/
public static function add( $appid, $subject, $predicate, $object = ' ' ){
- $query=OC_DB::prepare("INSERT INTO `*PREFIX*log`(moment,appid,user,action,info) VALUES(NOW(),?,?,?,?)");
+ $query=OC_DB::prepare("INSERT INTO `*PREFIX*log`(moment,appid,`user`,action,info) VALUES(NOW(),?,?,?,?)");
$result=$query->execute(array($appid,$subject,$predicate,$object));
// Die if we have an error
if( PEAR::isError($result)) {
@@ -90,7 +90,7 @@ class OC_Log {
array_push($params,$filter('until'));
}
if(isset($filter['user'])){
- $queryString.='AND user=? ';
+ $queryString.='AND `user`=? ';
array_push($params,$filter('user'));
}
if(isset($filter['app'])){