Jump to content

Deprecated warning on a no longer supported plugin


Dirty Butter
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...