Skip to content

Commit b043850

Browse files
committed
Merge pull request #29 from leewoodman/patch-1
Update class.MySQL.php [Thank you!]
2 parents ec3d9af + 0a7e60a commit b043850

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

class.MySQL.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ function ExecuteSQL($query){
121121
$this->records = @mysql_num_rows($this->result);
122122
$this->affected = @mysql_affected_rows($this->databaseLink);
123123

124-
return true;
124+
if($this->records > 0){
125+
$this->ArrayResults();
126+
return $this->arrayedResult;
127+
}else{
128+
return true;
129+
}
125130

126131
}else{
127132
$this->lastError = mysql_error($this->databaseLink);

0 commit comments

Comments
 (0)