Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
f9cc66d3
Commit
f9cc66d3
authored
May 08, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
svn://dwoo.org/dwoo/trunk@51
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
dc02338d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
Dwoo.php
lib/Dwoo.php
+15
-11
No files found.
lib/Dwoo.php
View file @
f9cc66d3
...
@@ -322,7 +322,7 @@ class Dwoo
...
@@ -322,7 +322,7 @@ class Dwoo
// try to get cached template
// try to get cached template
$file
=
$_tpl
->
getCachedTemplate
(
$this
);
$file
=
$_tpl
->
getCachedTemplate
(
$this
);
$doCache
=
$file
===
true
;
$doCache
=
$file
===
true
;
$cacheLoaded
=
$doCache
===
false
&&
is_string
(
$file
);
$cacheLoaded
=
is_string
(
$file
);
// cache is present, run it
// cache is present, run it
if
(
$cacheLoaded
===
true
)
if
(
$cacheLoaded
===
true
)
...
@@ -366,7 +366,7 @@ class Dwoo
...
@@ -366,7 +366,7 @@ class Dwoo
$this
->
template
=
null
;
$this
->
template
=
null
;
// building cache
// building cache
if
(
$doCache
)
if
(
$doCache
===
true
)
{
{
$_tpl
->
cache
(
$this
,
$out
);
$_tpl
->
cache
(
$this
,
$out
);
if
(
$_output
===
true
)
if
(
$_output
===
true
)
...
@@ -777,16 +777,24 @@ class Dwoo
...
@@ -777,16 +777,24 @@ class Dwoo
{
{
if
(
is_array
(
$value
)
===
true
)
if
(
is_array
(
$value
)
===
true
)
{
{
if
(
$checkIsEmpty
)
if
(
$checkIsEmpty
===
false
)
return
count
(
$value
)
>
0
;
else
return
true
;
return
true
;
else
return
count
(
$value
)
>
0
;
}
}
elseif
(
$value
instanceof
Iterator
)
elseif
(
$value
instanceof
Iterator
)
{
{
if
(
$checkIsEmpty
)
if
(
$checkIsEmpty
===
false
)
{
return
true
;
}
else
{
{
if
(
$allowNonCountable
)
if
(
$allowNonCountable
===
false
)
{
return
count
(
$value
)
>
0
;
}
else
{
{
if
(
$value
instanceof
Countable
)
if
(
$value
instanceof
Countable
)
return
count
(
$value
)
>
0
;
return
count
(
$value
)
>
0
;
...
@@ -796,11 +804,7 @@ class Dwoo
...
@@ -796,11 +804,7 @@ class Dwoo
return
$value
->
valid
();
return
$value
->
valid
();
}
}
}
}
else
return
count
(
$value
)
>
0
;
}
}
else
return
true
;
}
}
return
false
;
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment