Changeset 7271978


Ignore:
Timestamp:
Sep 7, 2015, 7:05:42 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
8a5cdba
Parents:
9b1e043
Message:

WebserviceApi::stationsRegister checks whether uuid_create is available and if not returns an error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php

    r9b1e043 r7271978  
    9595
    9696                        $app->response()->header("Content-Type", "application/json");
     97
     98                        if(!function_exists("uuid_create")){
     99                                echo json_encode
     100                                (
     101                                        [
     102                                                "result" => "missinguuidcreate",
     103                                                "message" => "The function uuid_create() from pecl package http://pecl.php.net/package/uuid is not installed, but needed!",
     104                                        ]
     105                                );
     106                                return;
     107                        }
    97108
    98109                        $expectedKeys = array("name", "city", "longitude", "latitude", "email");
Note: See TracChangeset for help on using the changeset viewer.