Skip to content

Commit

Permalink
Merge pull request #5014 from Jimmi08/patch-6
Browse files Browse the repository at this point in the history
Fixes #5013 False Error if UEF type DBField has no records
  • Loading branch information
CaMer0n authored Jul 10, 2023
2 parents e615bcf + bfa76f2 commit 044481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_handlers/user_extended_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ public function renderElement($struct, $curval, $opts=array())

$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";
Expand Down

0 comments on commit 044481a

Please sign in to comment.