We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6f82a8 + 3c6fe9d commit 0531717Copy full SHA for 0531717
class.MySQL.php
@@ -168,10 +168,15 @@ private function CleanData($data, $type = ''){
168
169
// Executes MySQL query
170
public function executeSQL($query){
171
- $this->lastQuery = $query;
172
- if($this->result = mysql_query($query, $this->databaseLink)){
173
- $this->records = @mysql_num_rows($this->result);
174
- $this->affected = @mysql_affected_rows($this->databaseLink);
+ $this->lastQuery = $query;
+ if($this->result = mysql_query($query, $this->databaseLink)){
+ if (gettype($this->result) === 'resource') {
+ $this->records = @mysql_num_rows($this->result);
175
+ $this->affected = @mysql_affected_rows($this->databaseLink);
176
+ } else {
177
+ $this->records = 0;
178
+ $this->affected = 0;
179
+ }
180
181
if($this->records > 0){
182
$this->arrayResults();
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments