امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
If
PHP:
$forum is null, then the code which uses $forumTypeHandler which is on all branches after fetching it from $forum; will be accessing a method on a null object instead of throwing/logging a useful/standard error message.PHP:
کد:
$forumTypeHandler = $forum ? $forum->TypeHandler : null;
if (!$this->discussion_type)
{
...
