partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 88607236f2846060dadd2820111bab0e6ddf80aa
parent 12de4ceb6109196827bf6058b838e39c4a9db5f5
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 10 Jul 2011 03:51:00 +0200

Don't spit out PHP notices

Diffstat:
Msrc/de/RaumZeitLabor/PartKeepr/Service/ServiceManager.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/de/RaumZeitLabor/PartKeepr/Service/ServiceManager.php b/src/de/RaumZeitLabor/PartKeepr/Service/ServiceManager.php @@ -15,8 +15,6 @@ class ServiceManager { $request = new Request(array('restful' => true)); $service = $request->getService(); - //print_r($request->action); - if ($service->hasHeader("call")) { $call = $service->getHeader("call"); } elseif (array_key_exists("call", $_REQUEST) && $_REQUEST["call"] != "") { @@ -48,6 +46,8 @@ class ServiceManager { if (!is_subclass_of($service, "de\\RaumZeitLabor\\PartKeepr\\Service\\AnonService")) { $session = null; + $sessionid = false; + if ($service->hasHeader("session")) { $sessionid = $service->getHeader("session"); }