'id' => $feed_id,
'is_cat' => $is_cat);
- if (is_resource($result)) {
+ if (!is_numeric($result)) {
while ($line = db_fetch_assoc($result)) {
$line["content_preview"] = truncate_string(strip_tags($line["content"]), $excerpt_length);
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
}
}
- if (is_resource($result) && $this->dbh->num_rows($result) > 0) {
+ if (!is_numeric($result) && $this->dbh->num_rows($result) > 0) {
$lnum = $offset;
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("PE", $timing_info);
- } else if (is_resource($result)) {
+ } else if (!is_numeric($result)) {
$message = "";
switch ($view_mode) {