MantisBT: master d60db9b5

Author Committer Branch Timestamp Parent
Julian Fitzell master 2003-02-10 18:48 master 615dfefc
Changeset

Ewww.... horrid, horrid, horrid PHP bug.

array_keys() will always give you an array element 0 (because of the way arrays are indexed) and in_array() will always return true when you ask if a string is contained in an array that has a 0 in it (because of the way strings and integers are compared)

  • core/bug_api.php
    (bug_get): use strict veresion of in_array

  • core/user_pref_api.php
    (user_pref_get): use strict veresion of in_array
    (user_pref_get_pref): use strict veresion of in_array

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1820 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9

mod - core/user_pref_api.php Diff File
mod - core/bug_api.php Diff File