content/content.delete.php 1 location
|
@@ 66-72 (lines=7) @@
|
63 |
|
// Validate parent entry ID |
64 |
|
$rawEntryId = MySQL::cleanValue($this->_context[2]); |
65 |
|
$entryId = General::intval($rawEntryId); |
66 |
|
if ($entryId < 1) { |
67 |
|
$this->_Result['error'] = sprintf( |
68 |
|
__('Parent entry id `%s` not valid'), |
69 |
|
$rawEntryId |
70 |
|
); |
71 |
|
return; |
72 |
|
} |
73 |
|
|
74 |
|
// Validate parent entry exists |
75 |
|
$entry = EntryManager::fetch($entryId); |
content/content.save.php 1 location
|
@@ 96-102 (lines=7) @@
|
93 |
|
// Validate parent entry ID |
94 |
|
$rawEntryId = MySQL::cleanValue($this->_context[2]); |
95 |
|
$entryId = General::intval($rawEntryId ); |
96 |
|
if ($entryId < 1) { |
97 |
|
$this->_Result['error'] = sprintf( |
98 |
|
__('Parent entry id `%s` not valid'), |
99 |
|
$rawEntryId |
100 |
|
); |
101 |
|
return; |
102 |
|
} |
103 |
|
|
104 |
|
// Validate parent entry exists |
105 |
|
$entry = EntryManager::fetch($entryId); |