@@ -132,8 +132,8 @@ discard block |
||
132 | 132 | $this->read = DB::connect()->prepare("SELECT * FROM {$this->table} {$this->terms}"); |
133 | 133 | $this->read->execute($this->statement); |
134 | 134 | return $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
135 | - } catch (\PDOException $e) { |
|
136 | - echo $e->getMessage() . " in " . $e->getFile(); |
|
135 | + }catch (\PDOException $e) { |
|
136 | + echo $e->getMessage()." in ".$e->getFile(); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | return $this; |
@@ -156,8 +156,8 @@ discard block |
||
156 | 156 | $this->read = DB::connect()->prepare("SELECT * FROM {$this->table} LIMIT {$this->limit} OFFSET {$this->offset}"); |
157 | 157 | $this->read->execute(); |
158 | 158 | $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
159 | - }catch (\PDOException $e){ |
|
160 | - echo $e->getMessage() . " in " . $e->getFile(); |
|
159 | + }catch (\PDOException $e) { |
|
160 | + echo $e->getMessage()." in ".$e->getFile(); |
|
161 | 161 | |
162 | 162 | } |
163 | 163 |
@@ -156,7 +156,7 @@ |
||
156 | 156 | $this->read = DB::connect()->prepare("SELECT * FROM {$this->table} LIMIT {$this->limit} OFFSET {$this->offset}"); |
157 | 157 | $this->read->execute(); |
158 | 158 | $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
159 | - }catch (\PDOException $e){ |
|
159 | + } catch (\PDOException $e){ |
|
160 | 160 | echo $e->getMessage() . " in " . $e->getFile(); |
161 | 161 | |
162 | 162 | } |