[Cs-content-commits] SF.net SVN: cs-content:[401] trunk/1.0/cs_phpDB.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-06-29 17:53:56
|
Revision: 401 http://cs-content.svn.sourceforge.net/cs-content/?rev=401&view=rev Author: crazedsanity Date: 2009-06-29 17:53:55 +0000 (Mon, 29 Jun 2009) Log Message: ----------- Fix references to invalid method call. /cs_phpDB.class.php: * run_insert(): -- replace calls to exception_handler() with exceptions. * run_query(): -- replace calls to exception_handler() with exceptions. Modified Paths: -------------- trunk/1.0/cs_phpDB.class.php Modified: trunk/1.0/cs_phpDB.class.php =================================================================== --- trunk/1.0/cs_phpDB.class.php 2009-06-29 17:28:31 UTC (rev 400) +++ trunk/1.0/cs_phpDB.class.php 2009-06-29 17:53:55 UTC (rev 401) @@ -116,11 +116,11 @@ $retval = false; } else { - $this->exception_handler(__METHOD__ .": no rows (". $numRows .") or dbError::: ". $dbError ."<BR>\nSQL::: ". $sql); + throw new exception(__METHOD__ .": no rows (". $numRows .") or dbError::: ". $dbError ."<BR>\nSQL::: ". $sql); } } else { - $this->exception_handler(__METHOD__ .": invalid length SQL (". $sql .")"); + throw new exception(__METHOD__ .": invalid length SQL (". $sql .")"); } return($retval); @@ -143,7 +143,7 @@ } else { //something broke... - $this->exception_handler(__METHOD__ .": failed to insert, rows=(". $this->numRows .")... " + throw new exception(__METHOD__ .": failed to insert, rows=(". $this->numRows .")... " ."ERROR::: ". $this->errorMsg() ."\n -- SQL:::: ". $sql); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |