#197 php 5.2 compatibility

Patches
open
nobody
1
2014-08-24
2012-11-12
Alain91
No

On PHP 5.2 an error occurs when calling Admin->preferences->general settings (url =
http://localhost/xoops/htdocs/modules/system/admin.php?fct=preferences&op=show&confcat_id=1)

Fatal error: Declaration of XoopsForm::getElements() must be compatible with that of XoopsFormContainer::getElements() in xxx\www\xoops\htdocs\class\xoopsform\form.php on line 27

Proposed patch

# Index: formcontainer.php
# ===================================================================
# --- formcontainer.php (revision 556)
# +++ formcontainer.php (working copy)
# @@ -36,5 +36,5 @@
#       * @param $recurse
#       * @return void
#       */
# -    function getElements($recurse);
# +    function getElements($recurse = false);
#  }
# \ No newline at end of file

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks