diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-20 15:53:17 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-20 15:53:17 +0000 |
commit | 44ab508559ddf1d4d0ef1e3964bd5d9cefd4d347 (patch) | |
tree | 1b5aba98548a007e7dddcebb3553338650b3274e | |
parent | dac53ecd0f9665e64f6e0f523de62823bf0a2090 (diff) | |
download | zabbix-44ab508559ddf1d4d0ef1e3964bd5d9cefd4d347.tar.gz zabbix-44ab508559ddf1d4d0ef1e3964bd5d9cefd4d347.tar.xz zabbix-44ab508559ddf1d4d0ef1e3964bd5d9cefd4d347.zip |
- added ordering rule to profiles (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5509 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r-- | frontends/php/include/profiles.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)){ |