1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Merge pull request #5014 from Jimmi08/patch-6

Fixes #5013 False Error if UEF type DBField has no records
This commit is contained in:
Cameron 2023-07-10 12:21:13 -07:00 committed by GitHub
commit 044481ab80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1387,7 +1387,7 @@ class e107_user_extended
$order = !empty($choices[3]) ? "ORDER BY " . $tp->toDB($choices[3], true) : "";
if($sql->select($tp->toDB($choices[0], true), $tp->toDB($choices[1], true) . "," . $tp->toDB($choices[2], true), "1 $order"))
if($sql->select($tp->toDB($choices[0], true), $tp->toDB($choices[1], true) . "," . $tp->toDB($choices[2], true), "1 $order") !== FALSE)
{
$choiceList = $sql->db_getList('ALL', false);
$ret = "<select id='{$fid}' {$include} name='{$fname}' {$required} {$title}>\n";