Skip to content

Commit

Permalink
Merge branch '3.1/develop' into 3.2/develop
Browse files Browse the repository at this point in the history
Conflicts:
	classes/kohana/database/query.php
  • Loading branch information
cbandy committed Jul 4, 2011
2 parents f2ff545 + b9deff5 commit 7ead0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/database/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function execute($db = NULL, $as_object = NULL, $object_params = NULL)
$cache_key = 'Database::query("'.$db.'", "'.$sql.'")';

// Read the cache first to delete a possible hit with lifetime <= 0
if ($result = Kohana::cache($cache_key, NULL, $this->_lifetime)
if (($result = Kohana::cache($cache_key, NULL, $this->_lifetime)) !== NULL
AND ! $this->_force_execute)
{
// Return a cached result
Expand Down

0 comments on commit 7ead0fe

Please sign in to comment.