mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
ads edit error
This commit is contained in:
parent
064247b2e2
commit
8910a31455
@ -62,12 +62,11 @@ class AdvPresenter extends EntryPresenter
|
|||||||
public function isCorporate()
|
public function isCorporate()
|
||||||
{
|
{
|
||||||
$user_id = $this->getObject()->created_by;
|
$user_id = $this->getObject()->created_by;
|
||||||
if ($user_id->register_type != null) {
|
if ($user_id && $user_id->register_type !== null) {
|
||||||
return $user_id->register_type;
|
return $user_id->register_type;
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function priceFormat($adv)
|
public function priceFormat($adv)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user