Revision: 2218
http://mrbs.svn.sourceforge.net/mrbs/?rev=2218&view=rev
Author: cimorrison
Date: 2011-12-29 18:25:41 +0000 (Thu, 29 Dec 2011)
Log Message:
-----------
Eliminated undefined index error
Modified Paths:
--------------
mrbs/trunk/web/edit_area_room.php
Modified: mrbs/trunk/web/edit_area_room.php
===================================================================
--- mrbs/trunk/web/edit_area_room.php 2011-12-29 17:14:25 UTC (rev 2217)
+++ mrbs/trunk/web/edit_area_room.php 2011-12-29 18:25:41 UTC (rev 2218)
@@ -64,19 +64,22 @@
$timezone_identifiers = timezone_identifiers_list();
foreach ($timezone_identifiers as $value)
{
- // Note: timezone identifiers can have three components, eg
- // America/Argentina/Tucuman. To keep things simple we will
- // treat anything after the first '/' as a single city and
- // limit the explosion to two
- list($continent, $city) = explode('/', $value, 2);
- // There are some timezone identifiers (eg 'UTC') on some operating
- // systems that don't fit the Continent/City model. We'll put them
- // into the special group
- if (!isset($city))
+ if (strpos($value, '/') === FALSE)
{
- $city = $continent;
+ // There are some timezone identifiers (eg 'UTC') on some operating
+ // systems that don't fit the Continent/City model. We'll put them
+ // into the special group
$continent = $special_group;
+ $city = $value;
}
+ else
+ {
+ // Note: timezone identifiers can have three components, eg
+ // America/Argentina/Tucuman. To keep things simple we will
+ // treat anything after the first '/' as a single city and
+ // limit the explosion to two
+ list($continent, $city) = explode('/', $value, 2);
+ }
$timezones[$continent][] = $city;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits