summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-08-01 15:00:07 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-08-01 15:00:07 +0200
commitab976863ae6af8ad915c24f0aa5a68af0062dd53 (patch)
tree0f066a9e69b9e2a01aa2ac61ebd10b10cb2be965 /lib
parente13f381189788c74fe08a3f3336d961977ff9dc4 (diff)
downloadnextcloud-server-ab976863ae6af8ad915c24f0aa5a68af0062dd53.tar.gz
nextcloud-server-ab976863ae6af8ad915c24f0aa5a68af0062dd53.zip
fix sql
Diffstat (limited to 'lib')
-rw-r--r--lib/appconfig.php2
-rw-r--r--lib/filecache.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/appconfig.php b/lib/appconfig.php
index 2e356225e7c..f3038e00532 100644
--- a/lib/appconfig.php
+++ b/lib/appconfig.php
@@ -128,7 +128,7 @@ class OC_Appconfig{
$query->execute( array( $app, $key, $value ));
}
else{
- $query = OC_DB::prepare( 'UPDATE `*PREFIX*appconfig` SET `configvalue` = :configvalue WHERE `appid` = ? AND `configkey` = ?' );
+ $query = OC_DB::prepare( 'UPDATE `*PREFIX*appconfig` SET `configvalue` = ? WHERE `appid` = ? AND `configkey` = ?' );
$query->execute( array( $value, $app, $key ));
}
}
diff --git a/lib/filecache.php b/lib/filecache.php
index e475581f14e..d169cb1b563 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -140,7 +140,7 @@ class OC_FileCache{
}
if(isset($data['mimetype'])){
$arguments[]=dirname($data['mimetype']);
- $queryParts[]='mimepart=?';
+ $queryParts[]='`mimepart`=?';
}
$arguments[]=$id;
@@ -148,7 +148,7 @@ class OC_FileCache{
$query=OC_DB::prepare($sql);
$result=$query->execute($arguments);
if(OC_DB::isError($result)){
- OC_Log::write('files','error while updating file('.$path.') in cache',OC_Log::ERROR);
+ OC_Log::write('files','error while updating file id('.$id.') in cache',OC_Log::ERROR);
}
}