Kodoc.php.diff

Sean o -, 03/28/2009 02:23 am

Download (844 Bytes)

 
trunk/modules/kodoc/libraries/Kodoc.php (working copy)
258 258
			// Remove * from the line
259 259
			$line = trim(substr($line, 2));
260 260

  
261
			if (substr($line, 0, 1) === '$' AND substr($line, -1) === '$')
261
			if ($line[0] === '$' AND substr($line, -1) === '$')
262 262
			{
263 263
				// Skip SVN property inserts
264 264
				continue;
265 265
			}
266 266

  
267
			if (substr($line, 0, 1) === '@')
267
			if ($line[0] === '@')
268 268
			{
269 269
				if (preg_match('/^@(.+?)\s+(.+)$/', $line, $matches))
270 270
				{
......
347 347

  
348 348
		$block = trim($block);
349 349

  
350
		if (substr($block, 0, 1) === '<')
350
		if ($block[0] === '<')
351 351
		{
352 352
			// Insert newlines before and after the block
353 353
			$block = "\n".$block."\n";