dblayer : allow the read order to be written in lowercase too

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3393 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-03-09 13:03:36 +00:00
parent e21a5a1840
commit 0591656532

View File

@@ -816,7 +816,7 @@ class dblayer
if ($n > 0)
$req .= ",";
$req .= $this->sep.$o[0].$this->sep;
if (isset ($o[1]) && $o[1] === "DESC")
if (isset ($o[1]) && strtoupper ($o[1]) === "DESC")
$req .= " DESC";
else
$req .= " ASC";