Incorrect function for load Image from DB

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.9.0 (alpha)
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: Frontend (F)
    • None
    • Environment:
      Oracle 10g2, PHP 5.2.11-pl0-gentoo

      Fatal error: Call to a member function load() on a non-object in /var/www/zabbix/php/include/images.inc.php on line 39

      Index: include/images.inc.php
      ===================================================================
      — include/images.inc.php (revision 8111)
      +++ include/images.inc.php (working copy)
      @@ -36,7 +36,7 @@
      if(!isset($row['image']))
      return 0;

      • $row['image'] = $row['image']->load();
        + $row['image'] = $row['image'];
        }
        else if($DB['TYPE'] == "POSTGRESQL"){
        $row['image'] = pg_unescape_bytea($row['image']);

            Assignee:
            Unassigned
            Reporter:
            Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: