Warning: usort() [function.usort]: Invalid comparison functi
Posté : 30 oct. 2009, 23:32
bonsoir,
j'utilise ce code pour mon site
et j'obtiens ce message d'erreur
Warning: usort() [function.usort]: Invalid comparison function in /home/maxaffai/www/templates/content/sitemap.tpl.php on line 148
Warning: usort() [function.usort]: Invalid comparison function in /home/maxaffai/www/templates/content/sitemap.tpl.php on line 149
apres plusieur heure de recherche je bloque.
est ce que quelqu'un pourrai m'aider et m'expliquer par la meme occassion l'erreur afin que je puisse comprendre merci
j'utilise ce code pour mon site
Code : Tout sélectionner
/****************** BUILT THE DISPLAY *********************/
$leftColDisplay = array();
$rightColDisplay = array();
$sortOrderArray = array(array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_ARTICLES_MANAGER, 'sortkey' => SITEMAP_SEO_SORTORDER_ARTICLES_MANAGER, 'module' => $showArticlesManager),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_CATEGORIES, 'sortkey' => SITEMAP_SEO_SORTORDER_CATEGORIES, 'module' => $showCategories),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_INFOPAGES, 'sortkey' => SITEMAP_SEO_SORTORDER_INFOPAGES, 'module' => $showInfoPages),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_MANUFACTURERS, 'sortkey' => SITEMAP_SEO_SORTORDER_MANUFACTURERS, 'module' => $showManufacturers),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_PAGE_MANAGER, 'sortkey' => SITEMAP_SEO_SORTORDER_PAGE_MANAGER, 'module' => $showPageManager),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_STANDARD_BOXES, 'sortkey' => SITEMAP_SEO_SORTORDER_STANDARD_BOXES, 'module' => $showInfoBoxes),
array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_STANDARD_PAGES, 'sortkey' => SITEMAP_SEO_SORTORDER_STANDARD_PAGES, 'module' => $showPages));
foreach($sortOrderArray as $key)
{
if (tep_not_null($key['module']))
{
if ($key['placement'] == 'left')
$leftColDisplay[] = $key;
else
$rightColDisplay[] = $key;
}
}
usort($leftColDisplay, "SortOnKeys");
usort($rightColDisplay, "SortOnKeys");
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SITEMAP_SEO));et j'obtiens ce message d'erreur
Warning: usort() [function.usort]: Invalid comparison function in /home/maxaffai/www/templates/content/sitemap.tpl.php on line 148
Warning: usort() [function.usort]: Invalid comparison function in /home/maxaffai/www/templates/content/sitemap.tpl.php on line 149
apres plusieur heure de recherche je bloque.
est ce que quelqu'un pourrai m'aider et m'expliquer par la meme occassion l'erreur afin que je puisse comprendre merci