You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type in ($service_id_for_type)", __LINE__, __FILE__);
290
+
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type in ({$service_id_for_type})", __LINE__, __FILE__);
290
291
if ($db->num_rows() > 0) {
291
292
while ($db->next_record(MYSQL_ASSOC)) {
292
293
$license_info = $db->Record;
@@ -319,7 +320,7 @@ function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = n
319
320
}
320
321
}
321
322
} else {
322
-
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type=$service_type", __LINE__, __FILE__);
323
+
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type={$service_type}", __LINE__, __FILE__);
0 commit comments