Nextrek
Diff Revisions
536
vs
537
for /Android/SmartCharging/endPoints/nightly/repositories/CommentRepository.php
|
@@ -2,6 +2,7 @@ |
2 |
2 |
|
require_once('CommentRepositoryInterface.php'); |
3 |
3 |
|
require_once(dirname(__FILE__).'/../classes/Comment.php'); |
4 |
4 |
|
require_once(dirname(__FILE__)."/../constants.php"); |
|
5 |
+ |
require_once(dirname(__FILE__)."/../utilities.php"); |
5 |
6 |
|
|
6 |
7 |
|
class CommentRepository implements CommentRepositoryInterface { |
7 |
8 |
|
protected $db; |
|
@@ -44,9 +45,9 @@ |
44 |
45 |
|
|
45 |
46 |
|
} catch (PDOException $e) { |
46 |
47 |
|
echo $e->getMessage(); |
47 |
|
- |
|
|
48 |
+ |
$status = createErrorMessage(2, "Errore DB"); |
48 |
49 |
|
$status["id"] = -1; |
49 |
|
- |
$status["return"] = 1; |
|
50 |
+ |
//$status["return"] = 1; |
50 |
51 |
|
|
51 |
52 |
|
return $status; |
52 |
53 |
|
} |