Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
oops, messed up the is_open_and_located stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HICAP ROBOT committed Jul 9, 2011
1 parent 5c0696d commit 410b7b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions protected/models/Trucks.php
Expand Up @@ -146,7 +146,7 @@ public static function get_all_located_trucks(){
*/
public static function get_all_open_and_located_trucks(){
$trucks = Trucks::get_all_located_trucks();
$ret = array_filter($trucks, array('Trucks', 'is_open_and_located'));
$ret = array_filter($trucks, array('Trucks', 'is_open'));
// because M**F** PHP doesn't have a decent list type
return array_values($ret);
}
Expand Down Expand Up @@ -183,10 +183,6 @@ public static function is_open($truck){
return ($now >= $tweet_starttime->getTimestamp()) && ($tweet_endtime->getTimestamp() >= $now);
}

public static function is_open_and_located($truck){
return Trucks::is_open($truck) && Trucks::has_geo($truck);
}

public static function obj_to_array($truck){
$ret = Array(
"id" => $truck->id,
Expand Down

0 comments on commit 410b7b1

Please sign in to comment.