global $db;
$rs = $db->Execute($sql);
- if (!$rs) return false;
+ if (empty($rs)) return false;
if ( $rs->RecordCount() ) {
return true;
global $db;
$rs = $db->Execute("$sql");
- if (!$rs) return 0;
+ if (empty($rs)) return 0;
return $rs->fields[0];
}
global $db;
$rs = $db->Execute("$sql");
- if (!$rs) return false;
+ if (empty($rs)) return false;
if ( $rs->RecordCount() == 1 ) {
return (object)$rs->fields;
global $db;
$rs = $db->Execute("$sql");
- if (!$rs) return false;
+ if (empty($rs)) return false;
if ( $rs->RecordCount() > 0 ) {
if ($records = $rs->GetAssoc(true)) {
global $db;
$rs = $db->Execute("$sql");
- if (!$rs) return false;
+ if (empty($rs)) return false;
if ( $rs->RecordCount() > 0 ) {
while (!$rs->EOF) {
global $db, $CFG;
$rs = $db->Execute("SELECT $return FROM $CFG->prefix$table WHERE $field = '$value'");
- if (!$rs) return false;
+ if (empty($rs)) return false;
if ( $rs->RecordCount() == 1 ) {
return $rs->fields["$return"];