Skip to content

Commit

Permalink
Replace AND with &&
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Jan 20, 2012
1 parent d4addaf commit eab6023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions system/helpers/date_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
* @filesource
*/

// ------------------------------------------------------------------------

/**
* CodeIgniter Date Helpers
*
Expand Down Expand Up @@ -441,11 +439,11 @@ function human_to_unix($datestr = '')
if (isset($split[2]))
{
$ampm = strtolower($split[2]);
if ($ampm[0] === 'p' AND $hour < 12)
if ($ampm[0] === 'p' && $hour < 12)
{
$hour += 12;
}
elseif ($ampm[0] === 'a' AND $hour == 12)
elseif ($ampm[0] === 'a' && $hour == 12)
{
$hour = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion system/helpers/download_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function force_download($filename = '', $data = '')
$extension = end(explode('.', $filename));

// Load the mime types
if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
if (defined('ENVIRONMENT') && is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
{
include(APPPATH.'config/'.ENVIRONMENT.'/mimes.php');
}
Expand Down

0 comments on commit eab6023

Please sign in to comment.