You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-commits@incubator.apache.org by ak...@apache.org on 2009/01/13 02:32:34 UTC

svn commit: r734000 - /incubator/olio/webapp/php/trunk/controllers/Events_Controller.php

Author: akara
Date: Mon Jan 12 18:32:33 2009
New Revision: 734000

URL: http://svn.apache.org/viewvc?rev=734000&view=rev
Log:
Fix for issue OLIO-17: Changed = (assignment) to == (equal test) as reported by issue.

Modified:
    incubator/olio/webapp/php/trunk/controllers/Events_Controller.php

Modified: incubator/olio/webapp/php/trunk/controllers/Events_Controller.php
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/php/trunk/controllers/Events_Controller.php?rev=734000&r1=733999&r2=734000&view=diff
==============================================================================
--- incubator/olio/webapp/php/trunk/controllers/Events_Controller.php (original)
+++ incubator/olio/webapp/php/trunk/controllers/Events_Controller.php Mon Jan 12 18:32:33 2009
@@ -40,9 +40,9 @@
     function getHomePageEvents($zipcode,$order,$offset){
             if(is_null($zipcode) || is_null($order) ) {
               $query = "select socialeventid,title,summary,imagethumburl,createdtimestamp,eventdate,submitterusername From SOCIALEVENT where  eventtimestamp>=CURRENT_TIMESTAMP ORDER BY eventdate ASC limit $offset,10";
-            }else if(!is_null($zipcode)  && !is_null($order) && $order = "created_at"){
+            }else if(!is_null($zipcode)  && !is_null($order) && $order == "created_at"){
               $query = "select socialeventid,title,summary,imagethumburl,createdtimestamp,eventdate,submitterusername From SOCIALEVENT as se,ADDRESS as a where se.eventtimestamp>=CURRENT_TIMESTAMP and se.ADDRESS_addressid=a.addressid and a.zip='$zipcode' ORDER BY se.createdtimestamp DESC limit $offset,10";
-            }else if(!is_null($zipcode)  && !is_null($order) && $order = "event_date"){
+            }else if(!is_null($zipcode)  && !is_null($order) && $order == "event_date"){
               $query = "select socialeventid,title,summary,imagethumburl,createdtimestamp,eventdate,submitterusername From SOCIALEVENT as se,ADDRESS as a where se.eventtimestamp>=CURRENT_TIMESTAMP and se.ADDRESS_addressid=a.addressid and a.zip='$zipcode' ORDER BY se.eventdate ASC limit $offset,10";
             }      
             return $query;