If a member (or search bot) triggers the search link from the files menu, the server will return a PHP error saying it ran out of memory. Apparently nobody uses that function outside of MudBytes so it never got noticed until today when I was checking error logs on Yahoo's Site Explorer function. It's a ridiculously easy fix:
Index: C:/Code Repositories/QSFP Branch/qsfportal/func/files.php
===================================================================
--- C:/Code Repositories/QSFP Branch/qsfportal/func/files.php (revision 360)
+++ C:/Code Repositories/QSFP Branch/qsfportal/func/files.php (revision 361)
@@ -1348,7 +1348,7 @@
function nestedSelect($cid = 0, $nest = 0, $selectArray = array())
{
- $cats = $this->db->query( 'SELECT fcat_name, fcat_id, fcat_parent FROM %pfile_categories WHERE fcat_parent=%d', $cid );
+ $cats = $this->db->query( 'SELECT fcat_name, fcat_id, fcat_parent FROM %pfile_categories WHERE fcat_parent=%d AND fcat_id != 0', $cid );
if($cats && $this->db->num_rows($cats) <= 0 )
return '';
.........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984