Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This can be improved:
// $Id: browscap.module,v 1.6.2.3.2.4 2008/08/13 02:49:43 robloach Exp $
PHP Notice: Trying to get property of non-object in /home/sites/co.uk/public_html/sites/all/modules/contributions/browscap/browscap.module on line 257
PHP Notice: Trying to get property of non-object in /home/sites/co.uk/public_html/sites/all/modules/contributions/browscap/browscap.module on line 259
PHP Notice: Undefined index: parent in /home/sites/co.uk/public_html/sites/all/modules/contributions/browscap/browscap.module on line 90
PHP Notice: Undefined index: crawler in /home/sites/co.uk/public_html/sites/all/modules/contributions/browscap/browscap.module on line 95
Comment | File | Size | Author |
---|---|---|---|
#6 | 360347_6_browscap_notices.patch | 3.77 KB | greggles |
#3 | blah.patch | 2.65 KB | RobLoach |
Comments
Comment #1
VM CreditAttribution: VM commentedsimilar report #410114: PHP Notices: "Trying to get property of non-object" and "Undefined index"
Comment #2
VM CreditAttribution: VM commentedComment #3
RobLoachComment #5
VM CreditAttribution: VM commentedComment #6
gregglesHere's the same patch merged with some other php notices I found.
However, I was never able to reproduce the original issue here. What are the steps to repeat?
Comment #7
gregglesI looked at the code some more and it seems reasonable - http://drupal.org/cvs?commit=264084
(Also, I didn't want to have to merge a bunch of stuff as I work on other patches ;) )