Created
July 23, 2014 10:20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: whmcs/modules/servers/namecheapssl/namecheapssl.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- whmcs/modules/servers/namecheapssl/namecheapssl.php (revision ) | |
+++ whmcs/modules/servers/namecheapssl/namecheapssl.php (revision ) | |
@@ -2746,7 +2746,8 @@ | |
if (!empty($_SESSION['adminid'])) { | |
$userid = $_SESSION["adminid"]; | |
- $username = array_shift(mysql_fetch_array(mysql_query("SELECT username FROM tbladmins WHERE id='$userid'"))); | |
+ $result = mysql_fetch_array(mysql_query("SELECT username FROM tbladmins WHERE id='$userid'")); | |
+ $username = array_shift($result); | |
} else { | |
$userid = $_SESSION['uid']; | |
$username = 'client'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment