Fix Undefined variable: result at tags.php#231

Fix app":"PHP","message":"Undefined variable: result at \/var\/www\/owncloud\/lib\/private\/tags.php#231" by moving the function call into the respective loop

Adjust indentation

Do it right - indentation

sorry, this is my first one
This commit is contained in:
derkostka 2014-12-19 12:09:46 +01:00 committed by Morris Jobke
parent 8164415b45
commit 1c22b1f626
1 changed files with 4 additions and 4 deletions

View File

@ -227,11 +227,11 @@ class Tags implements \OCP\ITags {
}
$entry = $entries[$objId][] = $row['category'];
}
}
if (\OCP\DB::isError($result)) {
\OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage($result), \OCP\Util::ERROR);
return false;
}
}
} catch(\Exception $e) {
\OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(),
\OCP\Util::ERROR);