more isset checks for PHP variables

This commit is contained in:
Sarah Hoffmann
2012-12-09 09:35:34 +01:00
parent ad89c1f0ca
commit fa1f23edfb
6 changed files with 14 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
if (!sizeof($aPlace))
{
if ($sError)
if (isset($sError))
$aFilteredPlaces['error'] = $sError;
else
$aFilteredPlaces['error'] = 'Unable to geocode';

View File

@@ -3,7 +3,7 @@
if (!sizeof($aPlace))
{
if ($sError)
if (isset($sError))
$aFilteredPlaces['error'] = $sError;
else
$aFilteredPlaces['error'] = 'Unable to geocode';

View File

@@ -14,7 +14,7 @@
if (!sizeof($aPlace))
{
if ($sError)
if (isset($sError))
echo "<error>$sError</error>";
else
echo "<error>Unable to geocode</error>";

View File

@@ -40,7 +40,7 @@
$aPlace['category'] = $aPointDetails['class'];
$aPlace['type'] = $aPointDetails['type'];
if ($aPointDetails['icon'])
if (isset($aPointDetails['icon']))
{
$aPlace['icon'] = $aPointDetails['icon'];
}