Menu

#39 bug in src/include.php

v1.0 (example)
closed-fixed
blentz
None
5
2014-08-12
2013-01-16
No

Whenever I commit zone changes, I see the following error in my /var/log/apache2/error.log: PHP Notice: Undefined variable: dbtype in /usr/share/smbind/php/src/include.php on line 360, referer: http://10.252.92.7/smbind/src/record.php?i=2

In the limit function in /usr/share/smbind/php/src/include.php, the scope for $dbtype is not correct. The scope needs to be global, I made the following change to line 353 in include.php:

global $_CONF; global $smarty; global $dbtype;

This eliminates the error.

Discussion

  • blentz

    blentz - 2014-08-12
    • status: open --> closed-fixed
    • assigned_to: blentz
    • Group: --> v1.0 (example)
     
  • blentz

    blentz - 2014-08-12

    Resolved in smbind-0.4.8.1.

     

Log in to post a comment.