mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix undefined values in various modules
This commit is contained in:
parent
28de1335a7
commit
702eebaa92
6 changed files with 28 additions and 13 deletions
|
|
@ -1007,12 +1007,12 @@ class CommentController extends Comment
|
|||
return new BaseObject(-1, 'msg_not_permitted');
|
||||
}
|
||||
|
||||
if($obj->password)
|
||||
if(!empty($obj->password))
|
||||
{
|
||||
$obj->password = \Rhymix\Framework\Password::hashPassword($obj->password, \Rhymix\Framework\Password::getBackwardCompatibleAlgorithm());
|
||||
}
|
||||
|
||||
if($obj->homepage)
|
||||
if(!empty($obj->homepage))
|
||||
{
|
||||
$obj->homepage = escape($obj->homepage);
|
||||
if(!preg_match('/^[a-z]+:\/\//i',$obj->homepage))
|
||||
|
|
@ -1021,7 +1021,7 @@ class CommentController extends Comment
|
|||
}
|
||||
}
|
||||
|
||||
if(!$obj->content)
|
||||
if(!isset($obj->content) || !$obj->content)
|
||||
{
|
||||
$obj->content = $source_obj->get('content');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue