mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-09 21:38:42 +00:00
PhpUnit fixes
This commit is contained in:
parent
2d58419c22
commit
d335c3136b
|
|
@ -91,6 +91,11 @@ class NewsArticleMapper extends DataMapperAbstract
|
|||
{
|
||||
try {
|
||||
$objId = parent::create($obj, $relations);
|
||||
|
||||
if($objId === null || !is_scalar($objId)) {
|
||||
return $objId;
|
||||
}
|
||||
|
||||
$query = new Builder(self::$db);
|
||||
$query->prefix(self::$db->getPrefix())
|
||||
->insert(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user