Skip to content
Snippets Groups Projects
Commit 74524998 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Old version of php on ucommxsrv1 doesnt like passing self::functionName as a parameter of usort()

parent ba075858
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,13 @@ class UNL_Procurement_BuyerList extends ArrayIterator
}
}
$mysqli->close();
usort($buyers,"self::uidSort");
return new self($buyers);
}
public static function uidSort($a,$b)
{
return strcmp(substr($a,1), substr($b,1));
function uidSort($a,$b)
{
return strcmp(substr($a,1), substr($b,1));
}
usort($buyers,"uidSort");
return new self($buyers);
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment