@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | } |
638 | 638 | |
639 | 639 | if (strtolower(substr($type, 0, 3)) == "set") { |
640 | - return (int)strlen($what) |
|
640 | + return (int) strlen($what) |
|
641 | 641 | - 2 // Remove open and closing quotes |
642 | 642 | - substr_count($what, "'") // Remove quotes |
643 | 643 | + substr_count($what, "'''") // Re-add escaped quotes |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | ) |
649 | 649 | / 2 // We have two quotes per value |
650 | 650 | ) |
651 | - - 1; // But we have one less comma than values |
|
651 | + - 1; // But we have one less comma than values |
|
652 | 652 | } |
653 | 653 | |
654 | 654 | if (strtolower(substr($type, 0, 4) == "enum")) { |