Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Created January 21, 2011 14:02
Show Gist options
  • Save kamaulynder/789710 to your computer and use it in GitHub Desktop.
Save kamaulynder/789710 to your computer and use it in GitHub Desktop.
/**
* Append phone numbers that comes from monitors to their location.
* TODO rework this wack solution
*/
public function _append_location_find() {
$location_find = Event::$data;
if (isset($_SESSION['from_location']))
{
$location_find = $_SESSION['from_location'];
$this->from_monitors = "m";
if (empty($location_find))
{
$location_find = "";
$this->from_monitors = "";
}
}
unset($_SESSION['from_location']);
Event::$data = $location_find;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment