Open shoulders opened 5 years ago
the forceErrorPage() is pretty much the centralised function I can use if needed. consider the follwoing 2 statements that are used on the majority of DB statements.
if(!$this->app->db->execute($sql)) {$this->app->system->page->forceErrorPage('database', __FILE__, __FUNCTION__, $this->app->db->ErrorMsg(), $sql);}
if(!$rs = $this->app->db->execute($sql)) {$this->app->system->page->forceErrorPage('database', __FILE__, __FUNCTION__, $this->app->db->ErrorMsg(), $sql);}