From: <oh...@us...> - 2012-12-07 15:38:54
|
Revision: 44207 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=44207&view=rev Author: ohertel Date: 2012-12-07 15:38:47 +0000 (Fri, 07 Dec 2012) Log Message: ----------- [fix] avoid error message when table check fails Modified Paths: -------------- branches/10.x/installer/installlib.php Modified: branches/10.x/installer/installlib.php =================================================================== --- branches/10.x/installer/installlib.php 2012-12-07 15:37:49 UTC (rev 44206) +++ branches/10.x/installer/installlib.php 2012-12-07 15:38:47 UTC (rev 44207) @@ -248,11 +248,15 @@ function tableExists( $tableName ) // {{{ { $result = $this->query("show tables"); - $list = array(); - while ( $row = $result->fetchRow() ) - $list[] = reset($row); + if ($result) { + $list = array(); + while ( $row = $result->fetchRow() ) + $list[] = reset($row); - return in_array($tableName, $list); + return in_array($tableName, $list); + } else { + return false; + } } // }}} function requiresUpdate() // {{{ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |