]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix sql
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 1 Aug 2012 13:00:07 +0000 (15:00 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 1 Aug 2012 13:00:07 +0000 (15:00 +0200)
lib/appconfig.php
lib/filecache.php

index 2e356225e7c3cc22dcf6d94a4aec3d5c93a4bfe2..f3038e005322af066d5ba0e0f77cf490eeeada11 100644 (file)
@@ -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 ));
                }
        }
index e475581f14eee594f086fafb2e3fd662814ee6bb..d169cb1b5636095ba4dc56268b2fda5d5f4aa9b3 100644 (file)
@@ -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);
                }
        }