title: Notice: Undefined index: loss_items
body: <p>This is really weird. I know what Undefined index means. But look at this code.</p>
  
  <p>This is what I got on the top of the script:</p>
  
  <pre><code>$__load = array(
      'loss_experience' =&gt; NULL,
      'loss_items' =&gt; NULL,
      'guild_info' =&gt; NULL,
      'skull_type' =&gt; NULL,
      'skull_time' =&gt; NULL,
      'blessings' =&gt; NULL,
      'direction' =&gt; NULL,
      'stamina' =&gt; NULL,
      'world_id' =&gt; NULL,
      'online' =&gt; NULL,
      'deletion' =&gt; NULL,
      'promotion' =&gt; NULL,
      'marriage' =&gt; NULL
  );
  </code></pre>
  
  <p>then in class I got this:</p>
  
  <pre><code>   public function load($id)
      {
          global $__load;
  
          if($__load['loss_experience'] == NULL)
          {
              $loss = '';
              if(fieldExist('loss_experience', 'players')) {
                  $loss = ', `loss_experience`, `loss_mana`, `loss_skills`';
              }
  
              $__load['loss_experience'] = $loss;
          }
  
          if($__load['loss_items'] == NULL)
          {
              $loss_items = '';
              if(fieldExist('loss_items', 'players')) {
                  $loss_items = ', `loss_items`, `loss_containers`';
              }
  
              $__load['loss_items'] = $loss_items;
          }
  </code></pre>
  
  <p>and this is error I become:</p>
  
  <pre><code>Notice: Undefined index: loss_items in D:\xampp\htdocs\myaac\system\libs\pot\OTS_Player.php on line 145
  </code></pre>
  
  <p>Line 145 is this:</p>
  
  <pre><code>if($__load['loss_items'] == NULL)
  </code></pre>
  
  <p>What I did wrong?</p>
  
  <p>When I comment this line:</p>
  
  <pre><code>$__load['loss_experience'] = $loss;
  </code></pre>
  
  <p>Then Notice is not showed. But I need to declare it.</p>
  
  <p>@Edit
  I've tried this:</p>
  
  <pre><code>    public function load($id)
      {
          global $__load;
  var_dump($__load);
          if($__load['loss_experience'] == NULL)
          {
              $loss = '';
              if(fieldExist('loss_experience', 'players')) {
                  $loss = ', `loss_experience`, `loss_mana`, `loss_skills`';
              }
  
              $__load['loss_experience'] = $loss;
          }
  var_dump($__load);
          if($__load['loss_items'] == NULL)
          {
  </code></pre>
  
  <p>Output of first var_dump is: NULL</p>
  
  <p>And second var_dump: array(1) { ["loss_experience"]=> string(0) "" }</p>
  
  <p>So it seems it doesn't see my top declared $__load variable.. but why?</p>