|
@@ 271-273 (lines=3) @@
|
| 268 |
|
public static function getShareByToken($token, $checkPasswordProtection = true) { |
| 269 |
|
$query = \OC_DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `token` = ?', 1); |
| 270 |
|
$result = $query->execute(array($token)); |
| 271 |
|
if ($result === false) { |
| 272 |
|
\OCP\Util::writeLog('OCP\Share', \OC_DB::getErrorMessage() . ', token=' . $token, \OCP\Util::ERROR); |
| 273 |
|
} |
| 274 |
|
$row = $result->fetchRow(); |
| 275 |
|
if ($row === false) { |
| 276 |
|
return false; |
|
@@ 1161-1165 (lines=5) @@
|
| 1158 |
|
$root = strlen($root); |
| 1159 |
|
$query = \OC_DB::prepare('SELECT '.$select.' FROM `*PREFIX*share` '.$where, $queryLimit); |
| 1160 |
|
$result = $query->execute($queryArgs); |
| 1161 |
|
if ($result === false) { |
| 1162 |
|
\OCP\Util::writeLog('OCP\Share', |
| 1163 |
|
\OC_DB::getErrorMessage() . ', select=' . $select . ' where=', |
| 1164 |
|
\OCP\Util::ERROR); |
| 1165 |
|
} |
| 1166 |
|
$items = array(); |
| 1167 |
|
$targets = array(); |
| 1168 |
|
$switchedItems = array(); |