|
From: Josh <jel...@us...> - 2007-08-05 19:41:01
|
Update of /cvsroot/cmsforme/CMSformE/includes In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10786 Modified Files: functions.php Log Message: Remove unused function Index: functions.php =================================================================== RCS file: /cvsroot/cmsforme/CMSformE/includes/functions.php,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -r1.60 -r1.61 --- functions.php 4 Jul 2006 06:35:12 -0000 1.60 +++ functions.php 5 Aug 2007 19:40:57 -0000 1.61 @@ -243,37 +243,6 @@ } // Fetch level of user (staff or non-staff) -function get_staff( $staff_position ) -{ - global $Database; - - $array = array(); - - $sql = 'SELECT * - FROM ' . DB_STAFF_TABLE . " - WHERE staff_id = $staff_id"; - - if( !( $result = $Database->query( $sql ) ) ) - { - include( ROOT . 'includes/errors.php' ); - $error = $Database->error(); - db_error( $error['code'], 'Could not obtain staff information.', $error['message'], __FILE__, __LINE__, $sql ); - } - - $j = 1; - - while( $row = $Database->fetch_array( $result ) ) - { - foreach( $row as $col_name => $value ) - { - $array[$j][$col_name] = $value; - } - - $j++; - } - - return $array; -} // Convert decimal hours to time format function convert_hours_to_time( $hours ) |