Return warning when an unknown RPC call was used
authorlseed <mail@joachim-breitner.de>
Thu, 25 Jun 2009 19:27:11 +0000 (21:27 +0200)
committerlseed <mail@joachim-breitner.de>
Thu, 25 Jun 2009 19:27:11 +0000 (21:27 +0200)
web/php/Controller.php

index 15bccd7..f70cf01 100644 (file)
                                                $res = "{ success: false, msg: \"Keine Pflanze mit dem Namen '".$plantname."' für den Nutzer '".$username."' gefunden.\" }";
                                        }
                                        break;
+
+                               default:
+                                       $res = "{ success : false, msg: \"Unkown RPC call '".$func."'\"}";
                        }
                
                        return new RPCAnswer($func, $res);