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:
Roman Schmerold (BNoiZe)
2014-01-08 16:07:13 +01:00
parent 7101655ed7
commit c5efe9fd7f

View File

@@ -30,7 +30,7 @@ function isCustomerStdSubdomain($did = 0) {
SELECT `customerid` FROM `".TABLE_PANEL_CUSTOMERS."`
WHERE `standardsubdomain` = :did
");
$result = Database::pexecute($result_stmt, array('did' => $did));
$result = Database::pexecute_first($result_stmt, array('did' => $did));
if (is_array($result)
&& isset($result['customerid'])