Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from ashnazg/trunk

avoid PHP Notice when [1] isn't set
  • Loading branch information...
commit c3fbfa5875ad500dca4940c23bea00330949b2e1 2 parents c5092ff + 7d238dc
@ashnazg ashnazg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Beautifier/Tokenizer.php
View
2  Beautifier/Tokenizer.php
@@ -315,7 +315,7 @@ function _handleXMLDefault($data)
*/
$regs = array();
preg_match("/<!--(.+)-->/i", $data, $regs);
- $comment = trim($regs[1]);
+ $comment = isset($regs[1]) ? trim($regs[1]) : '';
$struct = array(
"type" => XML_BEAUTIFIER_COMMENT,
Please sign in to comment.
Something went wrong with that request. Please try again.