|
@@ 274-276 (lines=3) @@
|
| 271 |
|
public static function getShareByToken($token, $checkPasswordProtection = true) { |
| 272 |
|
$query = \OC_DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `token` = ?', 1); |
| 273 |
|
$result = $query->execute(array($token)); |
| 274 |
|
if ($result === false) { |
| 275 |
|
\OCP\Util::writeLog('OCP\Share', \OC_DB::getErrorMessage() . ', token=' . $token, \OCP\Util::ERROR); |
| 276 |
|
} |
| 277 |
|
$row = $result->fetchRow(); |
| 278 |
|
if ($row === false) { |
| 279 |
|
return false; |
|
@@ 1238-1242 (lines=5) @@
|
| 1235 |
|
$root = strlen($root); |
| 1236 |
|
$query = \OC_DB::prepare('SELECT '.$select.' FROM `*PREFIX*share` '.$where, $queryLimit); |
| 1237 |
|
$result = $query->execute($queryArgs); |
| 1238 |
|
if ($result === false) { |
| 1239 |
|
\OCP\Util::writeLog('OCP\Share', |
| 1240 |
|
\OC_DB::getErrorMessage() . ', select=' . $select . ' where=', |
| 1241 |
|
\OCP\Util::ERROR); |
| 1242 |
|
} |
| 1243 |
|
$items = array(); |
| 1244 |
|
$targets = array(); |
| 1245 |
|
$switchedItems = array(); |