energine-cmf / energine

Energine is a content management system which allows to support web-applications (including websites) of any level of complexity. Energine is based on Energine CMF — a power full toolkit for web-application development using XML/XSLT transformations.
http://energine.org
MIT License
13 stars 3 forks source link

Annoying QAL::select() returns TRUE when empty result given #81

Closed andykarpov closed 9 years ago

andykarpov commented 9 years ago

All what developer needs is to make a select request, like: $res = $dbh->select() and then use result if any, like so: if ($res) { .... do whatever you need with $res }

But now developer needs to check the result with the following annoying checks: if ($res and is_array($res)) { .... do..... }

Also that is not clear - what is the FALSE response means ?

drPavka commented 9 years ago

fixed