]> source.dussan.org Git - nextcloud-server.git/commitdiff
correct wrong variable name in remoteStorage app
authorMichiel@unhosted <michiel@unhosted.org>
Wed, 5 Oct 2011 18:01:58 +0000 (20:01 +0200)
committerMichiel@unhosted <michiel@unhosted.org>
Wed, 5 Oct 2011 18:01:58 +0000 (20:01 +0200)
apps/remoteStorage/lib_remoteStorage.php

index 259efb0da690b02a12c7b8c26803fa366f01a114..5677ab3c6e0149d4b90becb885b71cd696207f55 100644 (file)
@@ -3,7 +3,7 @@
 class OC_remoteStorage {
        public static function getValidTokens($ownCloudUser, $userAddress, $dataScope) {
                $query=OC_DB::prepare("SELECT token,appUrl FROM *PREFIX*authtoken WHERE user=? AND userAddress=? AND dataScope=? LIMIT 100");
-               $result=$query->execute(array($user,$userAddress,$dataScope));
+               $result=$query->execute(array($ownCloudUser,$userAddress,$dataScope));
                if( PEAR::isError($result)) {
                        $entry = 'DB Error: "'.$result->getMessage().'"<br />';
                        $entry .= 'Offending command was: '.$result->getDebugInfo().'<br />';