Skip to content
Browse files

[FIXES #22222481] fixed issue causing fatal error

  • Loading branch information...
1 parent e4c9403 commit c5e2c910902791a61b5b8cb4526d2bbd340a9bff @nigeldaley nigeldaley committed Dec 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/ilp_mis_connection.php
View
4 db/ilp_mis_connection.php
@@ -190,7 +190,7 @@ function return_table_values($table,$whereparams=null,$fields='*',$addionalargs=
}
$sql = $select.$from.$where.$sort.$group.$limit;
- $result = $this->execute($sql);
+ $result = (!empty($this->db)) ? $this->execute($sql) : false;
return (!empty($result->fields)) ? $result->getRows() : false;
}
@@ -233,7 +233,7 @@ function return_stored_values($procedurename,$procedureargs='') {
}
$sql = "EXECUTE {$procedurename} {$args}";
- $result = $this->execute($sql);
+ $result = (!empty($this->db)) ? $this->execute($sql) : false;
return (!empty($result->fields)) ? $result->getRows() : false;
}

0 comments on commit c5e2c91

Please sign in to comment.
Something went wrong with that request. Please try again.