[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[159] trunk/0.3/cs_webdbupgrade.class.php
Status: Beta
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2010-03-09 19:09:05
|
Revision: 159
http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=159&view=rev
Author: crazedsanity
Date: 2010-03-09 19:08:59 +0000 (Tue, 09 Mar 2010)
Log Message:
-----------
Fix a potential recursion issue.
Modified Paths:
--------------
trunk/0.3/cs_webdbupgrade.class.php
Modified: trunk/0.3/cs_webdbupgrade.class.php
===================================================================
--- trunk/0.3/cs_webdbupgrade.class.php 2009-11-17 01:54:40 UTC (rev 158)
+++ trunk/0.3/cs_webdbupgrade.class.php 2010-03-09 19:08:59 UTC (rev 159)
@@ -543,7 +543,9 @@
//add the table...
$loadTableResult = $this->load_table();
if($loadTableResult === TRUE) {
- $retval = $this->get_database_version();
+ //now try the SQL...
+ $numrows = $this->db->exec($sql);
+ $dberror = $this->db->errorMsg();
}
else {
$this->error_handler(__METHOD__ .": no table in database, failed to create one... ORIGINAL " .
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|