Public bug reported:

Binary package hint: torrentflux

You can reproduce this by browsing to:

/admin.php?op=searchSettings

Or via the admin menu: Admin->Search Settings

Changing the search engine to one that has no filters (e.g. "isoHunt"),
and then clicking "Update Settings".

---

With the default install, there are some search engines with no search
filters. When trying to save the page in this instance, it fails:

Warning: Invalid argument supplied for foreach() in
/usr/share/torrentflux/www/settingsfunctions.php on line 158

The problem exists because settingsfunction.php::saveSettings($settings)
does not check $settings==null before trying to iterate through it.
Patch attached to resolve the problem.

I've also checked the source for the Hardy package and the same error
exists. Patch should apply cleanly on both.


Information:

[EMAIL PROTECTED]:/usr/share/torrentflux/www# apt-cache show torrentflux | grep 
Version
Version: 2.3-2ubuntu1
[EMAIL PROTECTED]:/usr/share/torrentflux/www# grep DESCR /etc/lsb-release 
DISTRIB_DESCRIPTION="Ubuntu 7.10"

** Affects: torrentflux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Search Settings -> Update Settings fails when search filter is blank
https://bugs.launchpad.net/bugs/197036
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to