Browse Source

Added return false

Tobias Reich 10 years ago
parent
commit
091381a2a3
2 changed files with 4 additions and 2 deletions
  1. 2 1
      php/access/Admin.php
  2. 2 1
      php/access/Guest.php

+ 2 - 1
php/access/Admin.php

@@ -58,7 +58,8 @@ class Admin extends Access {
 			case 'getPhotoArchive':		$this->getPhotoArchive(); break;
 
 			# Error
-			default:					exit('Error: Function not found! Please check the spelling of the called function.'); break;
+			default:					exit('Error: Function not found! Please check the spelling of the called function.');
+										return false; break;
 
 		}
 

+ 2 - 1
php/access/Guest.php

@@ -32,7 +32,8 @@ class Guest extends Access {
 			case 'getPhotoArchive':	$this->getPhotoArchive(); break;
 
 			# Error
-			default:					exit('Error: Function not found! Please check the spelling of the called function.'); break;
+			default:					exit('Error: Function not found! Please check the spelling of the called function.');
+										return false; break;
 
 		}