Return warning when an unknown RPC call was used
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 07:24:19 +0000 (09:24 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 07:24:19 +0000 (09:24 +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);