title: Don't understand why if statement doesnt have {}
body: <p>I have the following line in a function in wordpress <code>if(empty($paged)) $paged = 1;</code> and I don't understand why it doesn't have an opening <code>{</code> and a closing <code>}</code>. Is it self opening and closing, not sure if that is even a term</p>
  
  <p>Here is the function I am working with</p>
  
  <pre><code>&lt;?php
  function kriesi_pagination($pages = '', $range = 2)
  {  
       $showitems = ($range * 2)+1;  
  
       global $paged;
       if(empty($paged)) $paged = 1;
  
       if($pages == '')
       {
           global $wp_query;
           $pages = $wp_query-&gt;max_num_pages;
           if(!$pages)
           {
               $pages = 1;
           }
       }   
  
       if(1 != $pages)
       {
           echo "&lt;div class='pagination'&gt;";
           if($paged &gt; 2 &amp;&amp; $paged &gt; $range+1 &amp;&amp; $showitems &lt; $pages) echo "&lt;a href='".get_pagenum_link(1)."'&gt;&amp;laquo;&lt;/a&gt;";
           if($paged &gt; 1 &amp;&amp; $showitems &lt; $pages) echo "&lt;a href='".get_pagenum_link($paged - 1)."'&gt;&amp;lsaquo;&lt;/a&gt;";
  
           for ($i=1; $i &lt;= $pages; $i++)
           {
               if (1 != $pages &amp;&amp;( !($i &gt;= $paged+$range+1 || $i &lt;= $paged-$range-1) || $pages &lt;= $showitems ))
               {
                   echo ($paged == $i)? "&lt;span class='current'&gt;".$i."&lt;/span&gt;":"&lt;a href='".get_pagenum_link($i)."' class='inactive' &gt;".$i."&lt;/a&gt;";
               }
           }
  
           if ($paged &lt; $pages &amp;&amp; $showitems &lt; $pages) echo "&lt;a href='".get_pagenum_link($paged + 1)."'&gt;&amp;rsaquo;&lt;/a&gt;";  
           if ($paged &lt; $pages-1 &amp;&amp;  $paged+$range-1 &lt; $pages &amp;&amp; $showitems &lt; $pages) echo "&lt;a href='".get_pagenum_link($pages)."'&gt;&amp;raquo;&lt;/a&gt;";
           echo "&lt;/div&gt;\n";
       }
  }
  
  ?&gt;
  </code></pre>