Jump to content

Deprecated warning on a no longer supported plugin


Dirty Butter

Recommended Posts

Since SemperFi's plugins are no longer supported, I wonder if there is an easy way to fix what's causing this error message:

 	[<strong>Deprecated</strong>] /home/butter01/public_html/plushmemories.com/lovie-shoppe/modules/plugins/SFWS_Site_Testimonials/class.site_testimonials.php:163
- Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
https://plushmemories.com/lovie-shoppe/1993-shari-lewis-wooly-lamb-chop-full-body-puppet-lc-shirt.html?item_group_id=PG_3713

Here's the popup from that message

mutingErrorHandler() (class.gui.session.list.php:4)
require_once() (class.gui.session.list.php:4)
include() (gui.class.php:1564)
_displaySessionBox() (gui.class.php:360)
displayCommon() (controller.index.inc.php:91)
include() (index.php:20)

 

Link to comment
Share on other sites

I believe the edit should be as follows:

$site_testimonials_display_data = (isset($_POST['site_testimonial']))
  ? $_POST['site_testimonial']
  : ( (isset($site_testimonials[0])) ? $site_testimonials[0] : '' );

I broke the line into parts to more easily show the order of operations. The third line is evaluated first as it has the (newly added) parentheses. (You do not need to keep the line broken.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...