Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -80,9 +80,12 @@ |
81 | 81 | } |
82 | 82 | |
83 | 83 | } |
84 | | - $this->mOpened = $this->mConn; |
| 84 | + $this->mOpened = !!$this->mConn; |
85 | 85 | # set error codes only, don't raise exceptions |
86 | | - $this->mConn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT ); |
| 86 | + if ( $this->mOpened ) { |
| 87 | + $this->mConn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT ); |
| 88 | + return true; |
| 89 | + } |
87 | 90 | } |
88 | 91 | |
89 | 92 | /** |