Permalink
Browse files

Couple of syntax fixes - missing semicolon and usage of empty() insid…

…e a conditional.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7933 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
1 parent 855741c commit a1046de8955be6183452b3e33c073fb7a2ba07f9 john committed Dec 17, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/libs/view/helpers/javascript.php
@@ -272,7 +272,7 @@ function link($url, $inline = true) {
$timestampEnabled = (
(Configure::read('Asset.timestamp') === true && Configure::read() > 0) ||
Configure::read('Asset.timestamp') === 'force'
- )
+ );
if (strpos($url, '?') === false && $timestampEnabled) {
$url .= '?' . @filemtime(WWW_ROOT . str_replace('/', DS, $url));
@@ -433,7 +433,8 @@ function writeEvents($inline = true, $options = array()) {
$out = '';
$rules = array();
- if (!$this->_cacheEvents || empty($data = $this->getCache())) {
+ $data = $this->getCache();
+ if (!$this->_cacheEvents || empty($data)) {
return;
}

0 comments on commit a1046de

Please sign in to comment.