Skip to content
Browse files

AND -> &&

  • Loading branch information...
1 parent 04c146d commit b8fb66b38e233c82f0116f9bdb0fdfd4ee074b30 @junap committed Mar 11, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 system/helpers/date_helper.php
View
10 system/helpers/date_helper.php
@@ -196,7 +196,7 @@ function timespan($seconds = 1, $time = '', $units = '')
$seconds -= $years * 31557600;
$months = floor($seconds / 2629743);
- if (count($str) < $units AND ($years > 0 OR $months > 0))
+ if (count($str) < $units && ($years > 0 OR $months > 0))
{
if ($months > 0)
{
@@ -208,7 +208,7 @@ function timespan($seconds = 1, $time = '', $units = '')
$weeks = floor($seconds / 604800);
- if (count($str) < $units AND ($years > 0 OR $months > 0 OR $weeks > 0))
+ if (count($str) < $units && ($years > 0 OR $months > 0 OR $weeks > 0))
{
if ($weeks > 0)
{
@@ -220,7 +220,7 @@ function timespan($seconds = 1, $time = '', $units = '')
$days = floor($seconds / 86400);
- if (count($str) < $units AND ($months > 0 OR $weeks > 0 OR $days > 0))
+ if (count($str) < $units && ($months > 0 OR $weeks > 0 OR $days > 0))
{
if ($days > 0)
{
@@ -232,7 +232,7 @@ function timespan($seconds = 1, $time = '', $units = '')
$hours = floor($seconds / 3600);
- if (count($str) < $units AND ($days > 0 OR $hours > 0))
+ if (count($str) < $units && ($days > 0 OR $hours > 0))
{
if ($hours > 0)
{
@@ -244,7 +244,7 @@ function timespan($seconds = 1, $time = '', $units = '')
$minutes = floor($seconds / 60);
- if (count($str) < $units AND ($days > 0 OR $hours > 0 OR $minutes > 0))
+ if (count($str) < $units && ($days > 0 OR $hours > 0 OR $minutes > 0))
{
if ($minutes > 0)
{

0 comments on commit b8fb66b

Please sign in to comment.
Something went wrong with that request. Please try again.