#1776 php 5.0.4 E_NOTICE error in delivery class

closed-fixed
nobody
None
5
2005-07-20
2005-05-22
No

apache 2.0.52
php 5.0.4

Notice: Trying to get property of non-object in
/path/class/deliver/Deliver.class.php on line 443

SquirrelMail 1.5.1cvs.

Same code is in 1.4.4 (line 404) and 1.4.5cvs.

It is possible that isset() can get rid of notice, but
I am not 100% sure about it.

Discussion

  • Jonathan Angliss

    Logged In: YES
    user_id=620333

    Might want to use is_object and not isset. I think isset is
    only going to verify if the value is set, but you are still
    calling an operation on a possible non-object. Or maybe a
    combination of the two?

     
  • simonsez

    simonsez - 2005-07-16

    Logged In: YES
    user_id=1313840

    I have this same issue. Does anyone have a solution. Please
    be specific since I am new to Linux. Thanks.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-17

    Logged In: YES
    user_id=225877

    this is only E_NOTICE level error. It does not break script
    execution.

    error can be disabled if you set

    error_reporting = E_ALL & ~E_NOTICE

    or

    display_errors = off

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-20
    • status: open --> closed-fixed
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-07-20

    Logged In: YES
    user_id=225877

    Fixed in 1.5.1cvs and 1.4.6cvs

     

Log in to post a comment.