Skip to content

Instantly share code, notes, and snippets.

@kochen
Created July 24, 2014 09:51
Show Gist options
  • Save kochen/38a580acacb0739277f0 to your computer and use it in GitHub Desktop.
Save kochen/38a580acacb0739277f0 to your computer and use it in GitHub Desktop.
Index: modules/addons/namecheap_ssl/namecheap_ssl.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/addons/namecheap_ssl/namecheap_ssl.php (revision )
+++ modules/addons/namecheap_ssl/namecheap_ssl.php (revision )
@@ -266,7 +266,8 @@
// query for count
$sql = "SELECT COUNT(log.id) FROM mod_namecheapssl_log log LEFT JOIN tblclients AS c ON (log.userid=c.id AND user='client') $sqlWhere" ;
$r = mysql_query($sql);
- $iCountOfLogItems = array_shift(mysql_fetch_array($r));
+ $result = mysql_fetch_array($r);
+ $iCountOfLogItems = array_shift($result);
$iCountOfPages = (int)ceil($iCountOfLogItems/$iOffset);
Index: modules/servers/namecheapssl/namecheapapi.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/servers/namecheapssl/namecheapapi.php (revision )
+++ modules/servers/namecheapssl/namecheapapi.php (revision )
@@ -401,7 +401,8 @@
if(!$r){
return false;
}
- return array_shift(mysql_fetch_assoc($r));
+ $result = mysql_fetch_assoc($r);
+ return array_shift($result);
}
public static function insert($table,$array){
Index: modules/servers/namecheapssl/namecheapapi.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/servers/namecheapssl/namecheapapi.php (revision )
+++ modules/servers/namecheapssl/namecheapapi.php (revision )
@@ -401,7 +401,8 @@
if(!$r){
return false;
}
- return array_shift(mysql_fetch_assoc($r));
+ $result = mysql_fetch_assoc($r);
+ return array_shift($result);
}
public static function insert($table,$array){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment