[Bugfix] Trying to get property of non-object
-
I have a bugfix request for this plugin. Although the code still works, whenever submitting a form or viewing form entries with this plugin enabled, I get a large number of PHP Notices, reading:
Notice: Trying to get property of non-object in /var/www/html/contact/wp-content/plugins/gravitate-encryption/gds_encryption.php on line 679
This is easily fixed by inserting an if statement around line 679 as follows:
if (isset($detail->id)) { $long = $wpdb->get_row($wpdb->prepare("SELECT value FROM ".$wpdb->prefix."rg_lead_detail_long WHERE <code>lead_detail_id</code> = %d", $detail->id)); }
It would be great to see this pushed into the main code branch.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Bugfix] Trying to get property of non-object’ is closed to new replies.