| @@ 80-84 (lines=5) @@ | ||
| 77 | AND path != ' . $this->dbHandle->quote($this->path) . ' |
|
| 78 | '; |
|
| 79 | $stmt = $this->dbHandle->query($sql); |
|
| 80 | if ($stmt === false) { |
|
| 81 | $errorInfo = $this->dbHandle->errorInfo(); |
|
| 82 | $errorMsg = $errorInfo[2]; |
|
| 83 | throw new \Exception('SQLite Exception: ' . $errorMsg . ' in SQL: <br /><pre>' . $sql . '</pre>'); |
|
| 84 | } |
|
| 85 | $contents = $stmt->fetchAll(\PDO::FETCH_CLASS, '\library\storage\Document'); |
|
| 86 | foreach ($contents as $key => $document) { |
|
| 87 | if ($document->type === 'folder') { |
|
| @@ 285-289 (lines=5) @@ | ||
| 282 | { |
|
| 283 | $db = $this->getContentDbHandle(); |
|
| 284 | $stmt = $db->query($sql); |
|
| 285 | if ($stmt === false) { |
|
| 286 | $errorInfo = $db->errorInfo(); |
|
| 287 | $errorMsg = $errorInfo[2]; |
|
| 288 | throw new \Exception('SQLite Exception: ' . $errorMsg . ' in SQL: <br /><pre>' . $sql . '</pre>'); |
|
| 289 | } |
|
| 290 | return $stmt; |
|
| 291 | } |
|
| 292 | ||