From 44ab508559ddf1d4d0ef1e3964bd5d9cefd4d347 Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 20 Mar 2008 15:53:17 +0000 Subject: - added ordering rule to profiles (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5509 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/profiles.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/php') diff --git a/frontends/php/include/profiles.inc.php b/frontends/php/include/profiles.inc.php index 46685bf9..fd958d34 100644 --- a/frontends/php/include/profiles.inc.php +++ b/frontends/php/include/profiles.inc.php @@ -28,7 +28,7 @@ function get_profile($idx,$default_value=null,$type=PROFILE_TYPE_UNKNOWN){ $result = $default_value; if($USER_DETAILS["alias"]!=ZBX_GUEST_USER){ - $db_profiles = DBselect('SELECT * FROM profiles WHERE userid='.$USER_DETAILS["userid"].' AND idx='.zbx_dbstr($idx)); + $db_profiles = DBselect('SELECT * FROM profiles WHERE userid='.$USER_DETAILS["userid"].' AND idx='.zbx_dbstr($idx).' ORDER BY profileid ASC'); if($profile=DBfetch($db_profiles)){ -- cgit