Skip to content

Instantly share code, notes, and snippets.

@kochen
Created July 23, 2014 10:20
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