Browse Source

variable name fix.

Nathaniel van Diepen 11 years ago
parent
commit
a4721ffb53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      php/database.php

+ 2 - 2
php/database.php

@@ -18,9 +18,9 @@
 	}
 	function fetch_all($result,$type=MYSQLI_NUM){
 		if(method_exists('mysqli_result', 'fetch_all')){
-			$res = $result->fetch_all($resulttype);
+			$res = $result->fetch_all($type);
 		}else{
-			for($res = array(); $tmp = $result->fetch_array($resulttype);){
+			for($res = array(); $tmp = $result->fetch_array($type);){
 				$res[] = $tmp;
 			}
 		}