Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_works($status) {
- $CI = &get_instance();
- $query = "SELECT * FROM manager_works";
- if(!isset($status) || empty($status)) {
- $status = array('READY');
- }
- foreach ($status as $s) {
- $CI->db->or_where('state', $s);
- }
- $query = $CI->db->query($query);
- if ($query->num_rows() == 1) {
- return count($query->row());
- } else {
- return 0;
- }
- }
- // A PHP Error was encountered
- // Severity: Warning
- // Message: Invalid argument supplied for foreach()
- // Filename: helpers/rocks_helper.php
- // Line Number: 24
- // Backtrace:
- // File: /var/www/vhosts/intranet.**********/httpdocs/application/helpers/rocks_helper.php
- // Line: 24
- // Function: _error_handler
- // File: /var/www/vhosts/intranet.**********/httpdocs/application/controllers/Login.php
- // Line: 21
- // Function: get_works
- // File: /var/www/vhosts/intranet.**********/httpdocs/index.php
- // Line: 292
- // Function: require_once
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement