mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-14 03:34:38 +00:00
Fix some screwy logic in AwlQuery for statements with no parameters.
This commit is contained in:
parent
c4917a7e6e
commit
4e9c3dedc5
@ -502,7 +502,7 @@ class AwlQuery
|
||||
}
|
||||
else $this->error_info = null;
|
||||
}
|
||||
else if ( $this->sth !== false ) {
|
||||
else if ( !isset($this->sth) ) {
|
||||
/** Ensure we have a connection to the database */
|
||||
if ( !isset($this->connection) ) {
|
||||
_awl_connect_configured_database();
|
||||
@ -515,6 +515,9 @@ class AwlQuery
|
||||
}
|
||||
else $this->error_info = null;
|
||||
}
|
||||
else if ( $this->sth === false ) {
|
||||
$success = false;
|
||||
}
|
||||
if ( $success ) $this->rows = $this->sth->rowCount();
|
||||
$t2 = microtime(true); // get end time
|
||||
$i_took = $t2 - $t1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user