e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
GNU General Public License v3.0
322
stars
214
forks
source link
False Error if UEF type DBField has no records #5013
Closed
Jimmi08 closed 1 year ago
Bug Description
False error, it happens with 0 records in the related database. Fix:
from
if($sql->select($tp->toDB($choices[0], true), $tp->toDB($choices[1], true) . "," . $tp->toDB($choices[2], true), "1 $order") )
to
if($sql->select($tp->toDB($choices[0], true), $tp->toDB($choices[1], true) . "," . $tp->toDB($choices[2], true), "1 $order") !== FALSE)