Jump to content

Missing argument


Recommended Posts

hi

i am using ps 1.6

when debug enable this error Appears in Navhook

This message will be removed after someone's advice??
 
Warning: Missing argument 1 for CsQuickSearch::hookdisplayTop(), called in /home/offoffir/public_html/modules/csquicksearch/csquicksearch.php on line 29 and defined in /home/offoffir/public_html/modules/csquicksearch/csquicksearch.php on line 31
 
 
tanks

 

csquicksearch.php

post-850782-0-56498400-1459506127_thumb.jpg

Edited by behnam_amini2 (see edit history)
Link to comment
Share on other sites

I solved the problem myself.

By changing line 29 to:

 

public function hookDisplayNav($params){
    if (Tools::getValue('search_query') || !$this->isCached('csquicksearch.tpl', $this->getCacheId('csquicksearch')))
        {
            $this->calculHookCommon($params);
        }
        return $this->display(__FILE__, 'csquicksearch.tpl', Tools::getValue('search_query') ? null : $this->getCacheId('csquicksearch'));
    }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...