Closed (fixed)
Project:
Tribune
Version:
7.x-3.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2016 at 03:54 UTC
Updated:
2 Nov 2017 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
prostowebsite commentedComment #3
Ujwala_D commentedHi,
As mentioned above
if (!empty($tribune->tribune_type) == 'local') {The 'empty' function return TRUE or FALSE. so it will check either (1 == 'local') or (0 == 'local') which is totally wrong and bad coding practises.
Please check the patch for correct if condition.
Comment #5
nickdickinsonwildeThanks for the report.
Thanks for the patch, that looks like a perfect pix :)