title: What i did wrong specifying bootbox message, i'm getting an error?
body: <p>I'm using this function to send in other page where I'm updating user permission level.</p>
  
  <pre><code>var setPermLevel = function(userId, value)
      {
          $.ajax({
              type: "POST",
              url: "/user/setPermLevel",
              data: {id: userId, value: value},
              success: function(data)
              {
                  if(data[0]['error']) bootbox.alert(data[0]['error']);
                  else bootbox.alert(data[0]['message'], function() { location.reload(); });
              }
          });
      };
  </code></pre>
  
  <p>I'm trying with that code to send back a message to bootbox to show up to user, but I'm getting anyway an error from bootbox "Please specify a message".</p>
  
  <pre><code>if(isset($_POST['id']))
  {
      $userId = $_POST['id'];
      $value = $_POST['value'];
      $rslt = "[";
      if(User::isAdmin($_SESSION['user']) &lt; 6 &amp;&amp; $value &gt; 4) {
          $rslt .= '{"error":" You can\'t acces that."}';
      }
      else {
          $q = DB::prepare('UPDATE `users` SET `Admin` = ? WHERE `ID` = ?');
          $q-&gt;execute(array($value, $userId)); 
          $data .= '{"message":" Succesfully"}';
      }
      $rslt .= "]";
      echo $rslt;
  }
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>Uncaught Error: Please specify a message
      at sanitize (bootbox.js:109)
      at Object.window.bootbox.window.bootbox.exports.dialog (bootbox.js:450)
      at Object.window.bootbox.window.bootbox.exports.alert (bootbox.js:246)
      at Object.success (toolBox.js:3470)
      at i (jquery.min.js:2)
      at Object.fireWith [as resolveWith] (jquery.min.js:2)
      at A (jquery.min.js:4)
      at XMLHttpRequest.&lt;anonymous&gt; (jquery.min.js:4) 
  </code></pre>
  
  <p>What I did wrong, can anyone help me?</p>