Download & Extend

Don't call check_plain() on resource variables

Project:Drupal For Firebug
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

On http://localhost/dta/admin/content/taxonomy/1 I get the following error:
warning: preg_match() expects parameter 2 to be string, resource given in /home/chsc/www/drupal6/includes/bootstrap.inc on line 777.

The problem is that the $form array contains a MySQL resource. Adding something like this in drupalforfirebug_array_row_build() solves the problem:

    elseif (is_resource($value)) {
      $output .= "<div>$spacing $color [$key] => resource $colorend </div>";
    }

Comments

#1

Status:active» fixed

Great suggestion. Included.

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here