From a88a999ca8feb46c61da97a6c0e8df37fae588fb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 29 Mar 2009 12:48:33 +0000 Subject: - Patch #351898 by mfb: database API was not E_STRICT compatible. --- includes/database/database.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/database/database.inc') diff --git a/includes/database/database.inc b/includes/database/database.inc index ddffa3ce3..f07589b6f 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -1463,7 +1463,7 @@ interface DatabaseStatementInterface extends Traversable { * @return * TRUE on success, or FALSE on failure. */ - public function execute($args, $options); + public function execute($args = array(), $options = array()); /** * Get the query string of that statement. @@ -1640,7 +1640,7 @@ class DatabaseStatementBase extends PDOStatement implements DatabaseStatementInt $this->setFetchMode(PDO::FETCH_OBJ); } - public function execute($args, $options) { + public function execute($args = array(), $options = array()) { if (isset($options['fetch'])) { if (is_string($options['fetch'])) { // Default to an object. Note: db fields will be added to the object -- cgit v1.2.3