title: PHP array_walk() expects parameter 1 to be array, null given
body: <pre><code>function  get_user($get_data){
      global $session_user_id;
      $update= array();
      array_walk($get_data, 'array_sanitize');
      foreach ($get_data as $field =&gt; $data) {
          $update[] = '`'. $field . '` =\''.$data .'\'';
      }
      mysql_query("UPDATE `user_post` SET " . implode(', ', $update) . " WHERE `email` = $session_username");
  }
  </code></pre>
  
  <p>php code sending data</p>
  
  <pre><code>&lt;?php 
  
            if(empty($_POST['update'])  === false &amp;&amp; empty($errors) === true){
             $update_data = array(
              'fullname' =&gt; $_POST['fullname'],
              'username' =&gt; $_POST['username'],
              'email'    =&gt; $_POST['email'],
  
             );
             update_user($update_data);
             get_user($get_data);
  
            } else if (empty($errors) === false){
            echo output_errors($errors);
  
  
            }
  
  
  
  
            ?&gt;
  </code></pre>
  
  <p>Hello, I'm getting this error when I run this code:</p>
  
  <blockquote>
    <p>array_walk() expects parameter 1 to be array, null given</p>
  </blockquote>
  
  <p>Can anyone help?</p>