Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
Is this possible?
(Page 2 of 2)
1 of 2
2 of 2
View All
1
2
Previous Thread
Next Thread
Print Thread
View Threaded
May 5, 2009, 12:18 PM
Wychwood
User
(182 posts)
May 5, 2009, 12:18 PM
Post #26 of 26
Views: 1842
Shortcut
Re: [Andy] Is this possible?
In reply to
Quote:
if ($val2) {
return $val2 ? $val2 : 'No price found';
}
Part of that code is redundant. If you reach the line starting "return $val2..." then "if ($val2)" is true so its pointless testing it again with "return $val2 ?" .
1 of 2
2 of 2
View All
1
2
Previous Thread
Next Thread
Print Thread
View Threaded