mod/blog_tools/actions/blog/save.php 1 location
|
@@ 171-177 (lines=7) @@
|
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
// assign values to the entity, stopping on error. |
| 171 |
|
if (!$error) { |
| 172 |
|
foreach ($values as $name => $value) { |
| 173 |
|
if (($name != 'title2') && ($name != 'description2') && ($name != 'excerpt2')){ // remove input 2 in metastring table |
| 174 |
|
$blog->$name = $value; |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
// only try to save base entity if no errors |
| 180 |
|
if (!$error) { |
mod/gc_tags/actions/blog/save.php 1 location
|
@@ 139-145 (lines=7) @@
|
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
// assign values to the entity, stopping on error. |
| 139 |
|
if (!$error) { |
| 140 |
|
foreach ($values as $name => $value) { |
| 141 |
|
if (($name != 'title2') && ($name != 'description2') && ($name != 'excerpt2')){ // remove input 2 in metastring table |
| 142 |
|
$blog->$name = $value; |
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// only try to save base entity if no errors |
| 148 |
|
if (!$error) { |
mod/gc_mobile_api/models/blog.php 1 location
|
@@ 555-561 (lines=7) @@
|
| 552 |
|
$old_status = $blog->status; |
| 553 |
|
|
| 554 |
|
// assign values to the entity, stopping on error. |
| 555 |
|
if (!$error) { |
| 556 |
|
foreach ($values as $name => $value) { |
| 557 |
|
if (($name != 'title2') && ($name != 'description2') && ($name != 'excerpt2')){ // remove input 2 in metastring table |
| 558 |
|
$blog->$name = $value; |
| 559 |
|
} |
| 560 |
|
} |
| 561 |
|
} |
| 562 |
|
|
| 563 |
|
if (!$error){ |
| 564 |
|
if ($blog->save()){ |