summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}