Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions workflows.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Description: This PHP class object provides several useful functions for retrieving, parsing,
* and formatting data to be used with Alfred 2 Workflows.
* Author: David Ferguson (@jdfwarrior)
* Revised: 6/6/2013
* Version: 0.3.3
* Revised: 6/19/2014
* Version: 0.3.4
*/
class Workflows {

Expand Down Expand Up @@ -177,7 +177,7 @@ public function toxml( $a=null, $format='array' ) {
return false;
endif;

$items = new SimpleXMLElement("<items></items>"); // Create new XML element
$items = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><items></items>'); // Create new XML element

foreach( $a as $b ): // Lop through each object in the array
$c = $items->addChild( 'item' ); // Add a new 'item' element for each object
Expand Down Expand Up @@ -480,4 +480,4 @@ public function result( $uid, $arg, $title, $sub, $icon, $valid='yes', $auto=nul
return $temp;
}

}
}