File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -624,12 +624,12 @@ public function set_content($content)
624624 /**
625625 * Check if bbcode is enabled on the content
626626 *
627- * @return bool
627+ * @return int
628628 * @access public
629629 */
630630 public function content_bbcode_enabled ()
631631 {
632- return ($ this ->data ['page_content_bbcode_options ' ] & OPTION_FLAG_BBCODE ) ;
632+ return isset ($ this ->data ['page_content_bbcode_options ' ]) ? $ this -> data [ ' page_content_bbcode_options ' ] & OPTION_FLAG_BBCODE : 0 ;
633633 }
634634
635635 /**
@@ -663,12 +663,12 @@ public function content_disable_bbcode()
663663 /**
664664 * Check if magic_url is enabled on the content
665665 *
666- * @return bool
666+ * @return int
667667 * @access public
668668 */
669669 public function content_magic_url_enabled ()
670670 {
671- return ($ this ->data ['page_content_bbcode_options ' ] & OPTION_FLAG_LINKS ) ;
671+ return isset ($ this ->data ['page_content_bbcode_options ' ]) ? $ this -> data [ ' page_content_bbcode_options ' ] & OPTION_FLAG_LINKS : 0 ;
672672 }
673673
674674 /**
@@ -702,12 +702,12 @@ public function content_disable_magic_url()
702702 /**
703703 * Check if smilies are enabled on the content
704704 *
705- * @return bool
705+ * @return int
706706 * @access public
707707 */
708708 public function content_smilies_enabled ()
709709 {
710- return ($ this ->data ['page_content_bbcode_options ' ] & OPTION_FLAG_SMILIES ) ;
710+ return isset ($ this ->data ['page_content_bbcode_options ' ]) ? $ this -> data [ ' page_content_bbcode_options ' ] & OPTION_FLAG_SMILIES : 0 ;
711711 }
712712
713713 /**
You can’t perform that action at this time.
0 commit comments