Variable is set to "0" but PHP-If function is displaying them anyway
<p>Saturday and Sunday are set to "0" since they DJ won't be on the air. However in my function below, it displays them anyway.</p>

<p><code>$djday = date( 'D' );</code> its set to return <code>Mon</code>, <code>Tue</code>, <code>Wed</code>, <code>Thu</code>, <code>Fri</code>, <code>Sat</code>, <code>Sun</code></p>

<p>How could <code>0 == Sat</code> make the image display (return true)?</p>

<p>EDIT: Here is the entire script <a href="https://github.com/gregrickaby/DJ-Rotator-for-WordPress/blob/master/dj-rotator-for-wordpress.php" rel="nofollow">https://github.com/gregrickaby/DJ-Rotator-for-WordPress/blob/master/dj-rotator-for-wordpress.php</a></p>

<pre><code>function djwp_image() {
        global $djwp_settings, $djwp_images;

        // set the timezone
        if(function_exists( 'date_default_timezone_set' ))
            date_default_timezone_set($djwp_settings['time_zone']); 

        // get current server time
        $djday = date( 'D' );
        $djnow = date( 'h:i' ); 

            foreach((array)$djwp_images as $image =&gt; $data) {

                if
                ($data['monday'] == $djday || $data['tuesday'] == $djday || $data['wednesday'] == $djday ||
                 $data['thursday'] == $djday || $data['friday'] == $djday || $data['saturday'] == $djday ||
                  $data['sunday'] == $djday &amp;&amp; $data['start_time'] &lt;= $djnow &amp;&amp; $data['end_time'] &gt;= $djnow)

                echo "\t\t\t" .'&lt;a href="'.$data['image_links_to'].'"&gt;&lt;img class="'.$djwp_settings['image_class'].' '.$data['id'].'" src="'.$data['file_url'].'" width="'.$djwp_settings['img_width'].'" height="'.$djwp_settings['img_height'].'" alt="'.$data['desc'].'" title="'.$data['desc'].'" /&gt;&lt;/a&gt;' . "\n"; 

            }
    }
</code></pre>
