Changeset 2016
- Timestamp:
- 02/10/2008 12:23:51 AM (10 months ago)
- Location:
- trunk/system
- Files:
-
- 2 removed
- 3 modified
-
controllers/media.php (deleted)
-
libraries/Archive.php (modified) (2 diffs)
-
libraries/drivers/Database/Mysql.php (modified) (1 diff)
-
libraries/drivers/Database/Pdosqlite.php (modified) (1 diff)
-
models (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Archive.php
r1924 r2016 60 60 61 61 // Set the name 62 ($name === NULL) and $name = $path;62 empty($name) and $name = $path; 63 63 64 64 if (file_exists($path) AND is_dir($path)) … … 71 71 $this->paths[] = array($path, $name); 72 72 73 if ($recursive == TRUE)73 if ($recursive === TRUE) 74 74 { 75 75 $dir = opendir($path); -
trunk/system/libraries/drivers/Database/Mysql.php
r1931 r2016 289 289 public function field_data($table) 290 290 { 291 $query = mysql_query('SHOW COLUMNS FROM '.$this->escape_table($table), $this->link); 292 293 $table = array(); 294 while ($row = mysql_fetch_object($query)) 295 { 296 $table[] = $row; 297 } 298 299 return $table; 291 $columns = array(); 292 293 if ($query = mysql_query('SHOW COLUMNS FROM '.$this->escape_table($table), $this->link)) 294 { 295 if (mysql_num_rows($query) > 0) 296 { 297 while ($row = mysql_fetch_object($query)) 298 { 299 $columns[] = $row; 300 } 301 } 302 } 303 304 return $columns; 300 305 } 301 306 -
trunk/system/libraries/drivers/Database/Pdosqlite.php
r1906 r2016 661 661 } 662 662 // End Interface 663 663 664 } // End PdoSqlite_Result Class
