Return warning when an unknown RPC call was used
[L-seed.git] / 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);