Permalink
Browse files

No commit message

  • Loading branch information...
1 parent 723994a commit d9236ceb66e9bc3522f9eed6315c1f2225387946 qiang.xue committed Jun 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 framework/db/schema/CDbSchema.php
@@ -65,7 +65,8 @@ public function getTable($name)
if(($table=$cache->get($key))===false)
{
$table=$this->createTable($name);
- $cache->set($key,$table,$duration);
+ if($table!==null)
+ $cache->set($key,$table,$duration);
}
return $this->_tables[$name]=$table;
}

0 comments on commit d9236ce

Please sign in to comment.