Fixed a bug which made the function always return false, fixes #1348
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
@@ -30,7 +30,7 @@ function isCustomerStdSubdomain($did = 0) {
|
|||||||
SELECT `customerid` FROM `".TABLE_PANEL_CUSTOMERS."`
|
SELECT `customerid` FROM `".TABLE_PANEL_CUSTOMERS."`
|
||||||
WHERE `standardsubdomain` = :did
|
WHERE `standardsubdomain` = :did
|
||||||
");
|
");
|
||||||
$result = Database::pexecute($result_stmt, array('did' => $did));
|
$result = Database::pexecute_first($result_stmt, array('did' => $did));
|
||||||
|
|
||||||
if (is_array($result)
|
if (is_array($result)
|
||||||
&& isset($result['customerid'])
|
&& isset($result['customerid'])
|
||||||
|
|||||||
Reference in New Issue
Block a user