opencart/opencart — pull request #1448 by Martynas-P (2014-05-16 13:20:28+00:00)
Title: Fixing the usage of ternary operator in model which caused Empty Query error

Fixed the Empty Query error caused by incorrect usage of the ternary operator.