projects
/
Pman.Cms
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b9d66f
)
allow empty 'elements' from input data
author
leon
<leon@roojs.com>
Tue, 15 Nov 2022 06:48:21 +0000
(14:48 +0800)
committer
leon
<leon@roojs.com>
Tue, 15 Nov 2022 06:48:21 +0000
(14:48 +0800)
Import/Pages.php
patch
|
blob
|
history
diff --git
a/Import/Pages.php
b/Import/Pages.php
index
3712d38
..
de48c68
100644
(file)
--- a/
Import/Pages.php
+++ b/
Import/Pages.php
@@
-206,7
+206,8
@@
class Pman_Cms_Import_Pages extends Pman
$this->mapping['elements'] = array();
if(empty($this->data['elements'])){
- $this->jerr('Invalid Json Data [elements]');
+ return;
+ // $this->jerr('Invalid Json Data [elements]');
}
foreach ($this->data['elements'] as $k => $v){