Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False Error if UEF type DBField has no records #5013

Closed
Jimmi08 opened this issue Jun 15, 2023 · 0 comments · Fixed by #5014
Closed

False Error if UEF type DBField has no records #5013

Jimmi08 opened this issue Jun 15, 2023 · 0 comments · Fixed by #5014
Labels
type: bug A problem that should not be happening

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Jun 15, 2023

Bug Description

image

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)

@Jimmi08 Jimmi08 added the type: bug A problem that should not be happening label Jun 15, 2023
CaMer0n added a commit that referenced this issue Jul 10, 2023
Fixes #5013 False Error if UEF type DBField has no records
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant