Project

General

Profile

« Previous | Next » 

Revision 1770

Added by Dietmar almost 12 years ago

  1. fixed issues with database names
    WbDatabase::getTableEngine() changed SQL statement to strikt.
    ! remove empty warning box if you aren't sysadmin
    ! change order errorhandling in installation save.php
  2. typofix in news/upgrade.php $MESSAGE
    ! Framework/frontend.functions.php change file_exists to is_readable

View differences:

WbDatabase.php
396 396
		$retVal = false;
397 397
		$mysqlVersion = mysql_get_server_info($this->_db_handle);
398 398
		$engineValue = (version_compare($mysqlVersion, '5.0') < 0) ? 'Type' : 'Engine';
399
		$sql = "SHOW TABLE STATUS FROM " . $this->_db_name . " LIKE '" . $table . "'";
399
		$sql = 'SHOW TABLE STATUS FROM `' . $this->_db_name . '` LIKE \'' . $table . '\'';
400 400
		if(($result = $this->query($sql, $this->_db_handle))) {
401 401
			if(($row = $result->fetchRow(MYSQL_ASSOC))) {
402 402
				$retVal = $row[$engineValue];

Also available in: Unified diff